Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 552048

Summary: net-misc/tigervnc per user VNC_OPTS
Product: Gentoo Linux Reporter: T-Dawg <tgates81>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: tgates81
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: per user VNC_OPTS patch
fix bash errors expanding $usrvar

Description T-Dawg 2015-06-14 02:00:53 UTC
Created attachment 405110 [details, diff]
per user VNC_OPTS patch

Currently there is no way to specify per user VNC_OPTS in /etc/conf.d/tigervnc. Being able to do this for different resolutions per instance (user) for example would be very useful case.
The attached patch allows per user VNC_OPTS to be honored using the syntax VNC_OPTS_<user>= where <user> is defined in DISPLAYS=. For example:

DISPLAYS="test01:1 test02:2"
VNC_OPTS_test01="-geometry 1024x768"
VNC_OPTS_test02="-geometry 2048x1536"
Comment 1 T-Dawg 2015-07-02 21:24:56 UTC
Created attachment 406090 [details, diff]
fix bash errors expanding $usrvar
Comment 2 T-Dawg 2015-07-02 21:34:04 UTC
Well after taking a closer look at the code the init script does appear to support user specific VNC_OPTS. I'm not sure how I was having issues before (or how I even missed the existing relevant code) but on line 41 double quotes are needed around usrvar variable while testing length of string to be zero. Without it the script throws bash errors, though some how succeeds in setting the var properly with my current args. Maybe before I was using something different that threw it totally off, I don't know.
At any rate the double quotes *should* be there at least...
Comment 3 Pacho Ramos gentoo-dev 2016-05-24 08:42:18 UTC

*** This bug has been marked as a duplicate of bug 434382 ***