livecdfs-update.sh: Use `bash --login` to spawn startx
[catalyst.git] / targets / support / livecdfs-update.sh
index f8eb4257ceded3e8a71729c351a9c0c5bd5ac2f6..2b41f9d0d609601a37e025065851bdddc78009dd 100644 (file)
@@ -377,9 +377,7 @@ esac
 # We want the first user to be used when auto-starting X
 if [ -e /etc/startx ]
 then
-       sed -i \
-               "s:##STARTX:source /etc/profile && su - ${first_user} -c startx:" \
-               /root/.bashrc
+       sed -i "s:##STARTX:echo startx | su - '${first_user}':" /root/.bashrc
 fi
 
 if [ -e /lib/rcscripts/addons/udev-start.sh ]