# Create the user's xstartup script if necessary.
- if (!(-e "$vncUserDir/xstartup")) {
- warn "Creating default startup script $vncUserDir/xstartup\n";
- open(XSTARTUP, ">$vncUserDir/xstartup");
- print XSTARTUP $defaultXStartup;
- close(XSTARTUP);
- chmod 0755, "$vncUserDir/xstartup";
+ if (! $skipxstartup) {
+ if (!(-e "$vncUserDir/xstartup")) {
+ warn "Creating default startup script $vncUserDir/xstartup\n";
+ open(XSTARTUP, ">$vncUserDir/xstartup");
+ print XSTARTUP $defaultXStartup;
+ close(XSTARTUP);
+ chmod 0755, "$vncUserDir/xstartup";
+ }
}
+# 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);
+ chmod 0644, "$vncUserDir/config";
+}
+
# Run the X startup script.
- warn "Starting applications specified in $vncUserDir/xstartup\n";
+ if (! $skipxstartup) {
+ warn "Starting applications specified in $vncUserDir/xstartup\n";
+ }
warn "Log file is $desktopLog\n\n";
# If the unix domain socket exists then use that (DISPLAY=:n) otherwise use