diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-02 04:01:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-02 04:01:55 +0100 |
commit | abd09118c8571d30dce0bd8217d8fee251701c56 (patch) | |
tree | b818329093185970fed00952b53dfefeac087cf0 | |
parent | 8f5c6a759370c86f72b19773e777d11062635766 (diff) |
-rwxr-xr-x | redcorelive-openrc.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redcorelive-openrc.sh b/redcorelive-openrc.sh index e808cbb..f9376db 100755 --- a/redcorelive-openrc.sh +++ b/redcorelive-openrc.sh @@ -27,7 +27,9 @@ livePasswd() { } liveLogin() { - if [[ -e "/usr/share/xsessions/qtile.desktop" ]] ; then + if [[ -e "/usr/share/xsessions/lxqt.desktop" ]] ; then + sed -e "0,/User=/s//User=redcore/" -e "0,/Session=/s//Session=lxqt/" /etc/sddm.conf.d/00redcore.conf | tee /etc/sddm.conf.live > /dev/null 2>&1 + elif [[ -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 |