Oct 13, 2015, 4:12 AM
Post #1 of 3
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:
request: like to modify /usr/bin/vncserver to parse a config file
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.
How would one go about doing this? I see the section in /usr/bin/vncserver that parses physical switches and passes them along to Xvnc starting at line 254. Again, I do not know 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.