vnc4server should allow xstartup file to be specified on command line

Bug #1435373 reported by Jonathan Kamens
6
This bug affects 1 person
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.

Revision history for this message
Jonathan Kamens (jik) wrote :

Actually, I guess you also need to move the code that initializes $xstartup after the ParseOptions call.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.