livecdfs-update.sh: Set XSESSION in /etc/env.d/90xsession
authorW. Trevor King <wking@tremily.us>
Sat, 2 Mar 2013 19:17:01 +0000 (14:17 -0500)
committerBrian Dolbec <dolsen@gentoo.org>
Thu, 6 Jun 2013 03:47:30 +0000 (20:47 -0700)
As part of the OpenRC migration, the recommended place for configuring
the default X session moved from /etc/rc.conf to /etc/env.d/90xsession
[1].

[1]: http://www.gentoo.org/doc/en/openrc-migration.xml

targets/support/livecdfs-update.sh

index 0928f173b028fd17119ee83a3c8bf9659ca537af..1c8e3d4c163eddc4711527c8af4a42e0f1dead90 100755 (executable)
@@ -171,8 +171,7 @@ fi
 # Setup configured default X Session
 if [ -n "${clst_livecd_xsession}" ]
 then
-       sed -i "s:#XSESSION=\"Gnome\":XSESSION=\"${clst_livecd_xsession}\":" \
-               /etc/rc.conf
+       echo "XSESSION=\"${clst_livecd_xsession}\"" > /etc/env.d/90xsession
 fi
 
 # touch /etc/asound.state