- Timestamp:
- 2018-07-30T20:34:58+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/open-office/trunk/src/perllib/plugins/OpenOfficeConverter.pm
r28335 r32317 72 72 } 73 73 74 #my $cmd = "soffice - headless 2>&1"; # for linux and mac75 my $cmd = "soffice \"- accept=socket,host=$ENV{'SOFFICE_HOST'},port=$ENV{'SOFFICE_PORT'};urp;StarOffice.ServiceManager\"-headless 2>&1"; # for linux and mac74 #my $cmd = "soffice --headless 2>&1"; # for linux and mac 75 my $cmd = "soffice \"--accept=socket,host=$ENV{'SOFFICE_HOST'},port=$ENV{'SOFFICE_PORT'};urp;StarOffice.ServiceManager\" --headless 2>&1"; # for linux and mac 76 76 my $status = 0; 77 77 78 78 # No more JODCONVERTER_PORT env var: the port that jodconverter uses is now the 79 79 # same as SOFFICE_PORT, because the 2 are meant to communicate on the same port. 80 # The default port that jodconverter expects OO to listen on is 8100, so we try that.80 # The default port that jodconverter expects OO (OpenOffice/libreoffice/soffice/staroffice) to listen on is 8100, so we try that. 81 81 if ($ENV{'GSDLOS'} =~ m/^windows$/) { 82 82 … … 100 100 $status = system("which soffice >nul 2>&1"); # which.exe should be in bin/windows 101 101 if ($status == 0) { 102 $cmd = "start \"soffice process\" soffice \"- accept=socket,host=$ENV{'SOFFICE_HOST'},port=$ENV{'SOFFICE_PORT'};urp;StarOffice.ServiceManager\"-headless 2>&1";102 $cmd = "start \"soffice process\" soffice \"--accept=socket,host=$ENV{'SOFFICE_HOST'},port=$ENV{'SOFFICE_PORT'};urp;StarOffice.ServiceManager\" --headless 2>&1"; 103 103 $cmd .= " >nul"; 104 104 #print STDERR "***** Tried to start-up OpenOffice with:\n$cmd\n"; … … 179 179 180 180 my $launch_cmd = "soffice"; 181 $launch_cmd .= " \"- accept=socket,host=localhost,port=$oo_port;urp;StarOffice.ServiceManager\"";182 $launch_cmd .= " - headless";181 $launch_cmd .= " \"--accept=socket,host=localhost,port=$oo_port;urp;StarOffice.ServiceManager\""; 182 $launch_cmd .= " --headless"; 183 183 $self->{'openoffice_launch_cmd'} = $launch_cmd; 184 184 }
Note:
See TracChangeset
for help on using the changeset viewer.