CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
request: like to modify /usr/bin/vncserver to parse a config file

 



gs
New User

Oct 13, 2015, 4:12 AM

Post #1 of 3 (990 views)
request: like to modify /usr/bin/vncserver to parse a config file Can't Post

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:


Code
~/.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.

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.

Thanks!


Laurent_R
Veteran / Moderator

Oct 14, 2015, 3:30 AM

Post #2 of 3 (986 views)
Re: [gs] request: like to modify /usr/bin/vncserver to parse a config file [In reply to] Can't Post

Cross-posted on Perl Monks: http://www.perlmonks.org/?node_id=1144707.

There is nothing wrong with cross-posting question, but when you do, please say so to avoid duplication of work on various ends of the Internet.


gs
New User

Oct 16, 2015, 12:41 PM

Post #3 of 3 (982 views)
Re: [Laurent_R] request: like to modify /usr/bin/vncserver to parse a config file [In reply to] Can't Post

Solution

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives