vnc4server should allow xstartup file to be specified on command line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vnc4 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I need to be able to override ~/.vnc/xstartup when running unit tests for one of the packages I develop, while still preserving the default ~/.vnc/xstartup for my personal use. The vncserver script should have a command-line option to force it to use something other than ~/.vnc/xstartup. I see that either this used to exist at some point in the past, or someone started writing it but didn't:
$xstartup = $vncStartup if ($vncStartup);
The variable $vncStartup is referenced here but not set anywhere. Fixing this is simply adding a command-line option to specify the path of an alternative xstartup file to use, and then setting $vncStartup to that option after parsing the command-line options.
Actually, I guess you also need to move the code that initializes $xstartup after the ParseOptions call.