Changeset 22827

Show
Ignore:
Timestamp:
01.09.2010 11:48:52 (9 years ago)
Author:
davidb
Message:

Linux need to run soffice in background

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/open-office-src/trunk/perllib/plugins/OpenOfficeConverter.pm

    r22708 r22827  
    6363    else { 
    6464        # test to see if soffice in in path 
     65        my $cmd = "soffice -headless 2>&1"; 
     66 
     67 
    6568        if ($ENV{'GSDLOS'} =~ m/^windows$/) { 
    6669        my $ooffice_dir_guess = 
     
    7073            &util::envvar_append("PATH",$ooffice_dir_guess); 
    7174        } 
     75        $cmd .= " >nul"; 
    7276        } 
    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         
    7586        my $status = system($cmd); 
    7687        if ($status != 0) { 
     
    184195 
    185196    # Generate and run the convert command 
    186     my $jodjar; 
    187  
    188197    my $gextoo_home = $ENV{'GEXT_OPENOFFICE'}; 
    189198    my $jodjar = &util::filename_cat($gextoo_home,"lib","java","jodconverter.jar");