Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307773 - net-misc/tigervnc fails to start window manager due to undefined env vars
Summary: net-misc/tigervnc fails to start window manager due to undefined env vars
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Raúl Porcel (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-04 15:29 UTC by Sebastiaan
Modified: 2012-09-16 17:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastiaan 2010-03-04 15:29:54 UTC
When using /etc/init.d/tigervnc to automatically start VNC sessions configured in /etc/conf.d/tigervnc, the window manager is not started. (version 1.0.0-r3)

This is because XSESSION is not defined, and in general none of the (expected) environmental variables are defined. This is because the runscript environment is rather minimal.

I suggest running 'source /etc/profile' prior to starting vncserver:
40c40
< 		su ${user%%:*} -c "cd ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &>/dev/null
---
> 		su ${user%%:*} -c "source /etc/profile && cd ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &> /dev/null

In general, when /etc/profile is not loaded, the window manager is also started without any profile background.

See http://forums.gentoo.org/viewtopic-p-6193559.html for a short discussion.



Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2010-03-14 23:33:16 UTC
Thanks for your suggestion -- assigning it to tigervnc maintainer.
Comment 2 Róbert Čerňanský 2010-07-02 15:36:28 UTC
Even with the suggested modification in original report the $SHELL env. variable is set to /bin/sh instead of a user defined shell.
Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2012-09-16 17:45:01 UTC
Applied