Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 552048 - net-misc/tigervnc per user VNC_OPTS
Summary: net-misc/tigervnc per user VNC_OPTS
Status: RESOLVED DUPLICATE of bug 434382
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-14 02:00 UTC by T-Dawg
Modified: 2016-05-24 08:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
per user VNC_OPTS patch (per_user_VNC_OPTS.patch,460 bytes, patch)
2015-06-14 02:00 UTC, T-Dawg
Details | Diff
fix bash errors expanding $usrvar (VNC_OPTS_user.patch,472 bytes, patch)
2015-07-02 21:24 UTC, T-Dawg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***