Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 434382 | Differences between
and this patch

Collapse All | Expand All

(-)files/tigervnc.initd (-1 / +12 lines)
Lines 37-43 Link Here
37
	checkconfig start || return 1
37
	checkconfig start || return 1
38
	ebegin "Starting TigerVNC server"
38
	ebegin "Starting TigerVNC server"
39
	for user in $DISPLAYS; do
39
	for user in $DISPLAYS; do
40
		su -s /bin/sh ${user%%:*} -c "cd ~${user%%:*} && vncserver :${user##*:} $VNC_OPTS" &>/dev/null
40
		usrname=${user%%:*}
41
		usropts=VNC_OPTS_${usrname}
42
		usrdisp=${user##*:}
43
		usrdispopts=$usropts"["$usrdisp"]"
44
		if [ ! -z ${!usrdispopts} ] ; then
45
			vnc_opts=${!usrdispopts}
46
		elif [ ! -z ${!usropts} ] ; then
47
			vnc_opts=${!usropts}
48
		else
49
			vnc_opts=$VNC_OPTS
50
		fi
51
		su -s /bin/sh ${user%%:*} -c "cd ~${user%%:*} && vncserver :${user##*:} $vnc_opts" &>/dev/null
41
	done
52
	done
42
	eend $?
53
	eend $?
43
}
54
}

Return to bug 434382