Changeset 22827
- Timestamp:
- 2010-09-01T11:48:52+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/open-office-src/trunk/perllib/plugins/OpenOfficeConverter.pm
r22708 r22827 63 63 else { 64 64 # test to see if soffice in in path 65 my $cmd = "soffice -headless 2>&1"; 66 67 65 68 if ($ENV{'GSDLOS'} =~ m/^windows$/) { 66 69 my $ooffice_dir_guess = … … 70 73 &util::envvar_append("PATH",$ooffice_dir_guess); 71 74 } 75 $cmd .= " >nul"; 72 76 } 73 my $cmd = "soffice -headless 2>&1"; 74 77 else { 78 # Windows seems to launch OpenOffice as a service (i.e. 79 # automatically puts it in the background). 80 # For Unix putting it in the background needs to be done 81 # explicitly 82 83 $cmd .= " >/dev/null &"; 84 } 85 75 86 my $status = system($cmd); 76 87 if ($status != 0) { … … 184 195 185 196 # Generate and run the convert command 186 my $jodjar;187 188 197 my $gextoo_home = $ENV{'GEXT_OPENOFFICE'}; 189 198 my $jodjar = &util::filename_cat($gextoo_home,"lib","java","jodconverter.jar");
Note:
See TracChangeset
for help on using the changeset viewer.