From 8f5c6a759370c86f72b19773e777d11062635766 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Sep 2024 23:36:45 +0100 Subject: make sure we autostart qtile in live mode, just like plasma --- redcorelive-openrc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/redcorelive-openrc.sh b/redcorelive-openrc.sh index b630df9..e808cbb 100755 --- a/redcorelive-openrc.sh +++ b/redcorelive-openrc.sh @@ -27,7 +27,11 @@ livePasswd() { } liveLogin() { - sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=plasma/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1 + if [[ -e "/usr/share/xsessions/qtile.desktop" ]] ; then + sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=qtile/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1 + elif [[ -e "/usr/share/wayland-sessions/plasma.desktop" ]] ; then + sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=plasma/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1 + fi mv /etc/sddm.conf.live /etc/sddm.conf.d/00redcore.conf > /dev/null 2>&1 } -- cgit v1.2.3