4   unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML).
 
   5   push    @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version.
 
  16 $sendmail   = "| /usr/sbin/sendmail -t";
 
  20 $lxdebug = LXDebug->new();
 
  23 $form->{"script"} = "oe.pl";
 
  25 $ENV{'HOME'} = getcwd() . "/$userspath";
 
  27 my $template = SL::Template::create(type => 'OpenDocument', file_name => '', form => $form, myconfig => \%myconfig, userspath => $userspath);
 
  29 if (@ARGV && ($ARGV[0] eq "-r")) {
 
  30   system("ps auxww | " .
 
  32          "awk '/^www-data.*(soffice|Xvfb)/ { print \$2 }' | " .
 
  37 exit(1) unless ($template->spawn_xvfb());
 
  38 exit(2) unless ($template->spawn_openoffice());