gsky has asked for the wisdom of the Perl Monks concerning the following question:
I do not know perl but I would like to modify the perl wrapper script for vncserver provided by tigervnc to optionally parse a config file, say $HOME/.vnc/config to interpret the equivalent of the switches supported by vncserver.
For example:~/.vnc/config geometry=2000x1200 desktop=sandbox alwaysshared=1 localhost=1
The goal is to avoid using switches when invoking /usr/bin/vncserver if ~/.vnc/config exists and has them defined such that the script will look for that file, and parse these variables out passing them to the invocation of Xvnc automatically. I see the section in /usr/bin/vncserver that parses physical switches and passes them along to Xvnc starting at line 254 of the code. I could do this in bash no problem, but I don't speak perl.
Can someone who does mock-up this modification? I am glad to repeat for each option, but I need some model on which to build.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Like to modify /usr/bin/vncserver to parse a config file
by Anonymous Monk on Oct 13, 2015 at 14:50 UTC | |
by gsky (Initiate) on Oct 13, 2015 at 15:07 UTC | |
by Anonymous Monk on Oct 14, 2015 at 14:14 UTC | |
|
Re: Like to modify /usr/bin/vncserver to parse a config file
by stevieb (Canon) on Oct 13, 2015 at 15:09 UTC | |
by gsky (Initiate) on Oct 13, 2015 at 15:16 UTC | |
by Anonymous Monk on Oct 16, 2015 at 19:41 UTC |