Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 295562
Collapse All | Expand All

(-)/usr/portage/x11-apps/xinit/files/startDM.sh (-7 / +18 lines)
Lines 14-30 Link Here
14
	[ -r "${svclib}"/sh/rc-services.sh ] && . "${svclib}"/sh/rc-services.sh
14
	[ -r "${svclib}"/sh/rc-services.sh ] && . "${svclib}"/sh/rc-services.sh
15
fi
15
fi
16
16
17
# Great new Gnome2 feature, AA
18
# We enable this by default
19
export GDK_USE_XFT=1
20
21
export SVCNAME=xdm
17
export SVCNAME=xdm
18
22
EXEC="$(get_options service)"
19
EXEC="$(get_options service)"
23
NAME="$(get_options name)"
20
NAME="$(get_options name)"
24
PIDFILE="$(get_options pidfile)"
21
PIDFILE="$(get_options pidfile)"
22
XUSER=my_user_to_autologin
23
PIDFILE=/var/run/startx.pid
24
25
if test -z "${XUSER}"; then
26
	# Great new Gnome2 feature, AA
27
	# We enable this by default
28
	export GDK_USE_XFT=1
25
29
26
start-stop-daemon --start --exec ${EXEC} \
30
27
${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} || \
31
	start-stop-daemon --start --exec ${EXEC} \
28
eerror "ERROR: could not start the Display Manager"
32
	${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} || \
33
	eerror "ERROR: could not start the Display Manager"
34
else
35
        env USER=${XUSER} HOME=$(getent passwd ${XUSER}|cut -d: -f6) \
36
        start-stop-daemon --start --background --make-pidfile -c ${XUSER} --exec ${EXEC} \
37
        ${NAME:+--name} ${NAME} ${PIDFILE:+--pidfile} ${PIDFILE} || \
38
	eerror "ERROR: could not start ${EXEC} for ${XUSER}"
39
fi
29
40
30
# vim:ts=4
41
# vim:ts=4

Return to bug 295562