X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fea370586e44b567dcd772875798234ef1a0c412..4b6fd7d022e006a1309d60b1a044b0f0fec28ef0:/SL/Template.pm diff --git a/SL/Template.pm b/SL/Template.pm index 24285bf5b..a21f9eae3 100644 --- a/SL/Template.pm +++ b/SL/Template.pm @@ -1251,10 +1251,11 @@ sub spawn_xvfb { sub is_openoffice_running { $main::lxdebug->enter_sub(); - system("./scripts/oo-uno-test-conn.py $main::openofficeorg_daemon_port " . - "> /dev/null 2> /dev/null"); - my $res = $? == 0; - $main::lxdebug->message(LXDebug->DEBUG2(), " is_openoffice_running(): $?\n"); + my $output = `./scripts/oo-uno-test-conn.py $main::openofficeorg_daemon_port 2> /dev/null`; + chomp $output; + + my $res = ($? == 0) || $output; + $main::lxdebug->message(LXDebug->DEBUG2(), " is_openoffice_running(): res $res\n"); $main::lxdebug->leave_sub();