}
# Create the user's config file if necessary.
-
if (!(-e "$vncUserDir/config")) {
warn "Creating default config $vncUserDir/config\n";
- open(XSTARTUP, ">$vncUserDir/config");
- print XSTARTUP $defaultConfig;
- close(XSTARTUP);
+ open(VNCUSERCONFIG, ">$vncUserDir/config");
+ print VNCUSERCONFIG $defaultConfig;
+ close(VNCUSERCONFIG);
chmod 0644, "$vncUserDir/config";
}
}
$ENV{VNCDESKTOP}= $desktopName;
-system($exedir."vncconfig -nowin >> " . "edString($desktopLog) . " 2>&1 &");
-
if ($opt{'-fg'}) {
if (! $skipxstartup) {
- system("$xstartup >> " . "edString($desktopLog) . " 2>&1");
+ system("$xstartupFile >> " . "edString($desktopLog) . " 2>&1");
}
if (kill 0, `cat $pidFile`) {
$opt{'-kill'} = ':'.$displayNumber;