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!In reply to Like to modify /usr/bin/vncserver to parse a config file by gsky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |