summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-26 23:36:45 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-26 23:36:45 +0100
commit8f5c6a759370c86f72b19773e777d11062635766 (patch)
tree4025e4797970b92e4636c4898d3ae4c732a0a28d
parent36743832dee853ca09ac0ed8f4c39bc58e5cd667 (diff)
make sure we autostart qtile in live mode, just like plasma
-rwxr-xr-xredcorelive-openrc.sh6
1 files changed, 5 insertions, 1 deletions
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
}