From d4558436f6454cd0c6cd2fd7876b560aa25d5330 Mon Sep 17 00:00:00 2001 From: Nathaniel Maia Date: Thu, 1 Aug 2019 17:58:33 +0000 Subject: [PATCH] Strip some commands from ~/.xprofile when using KDE or Gnome as a login session. --- archlabs-installer | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index 352778c..e7b39c3 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -1483,8 +1483,15 @@ install_user() [[ $INSTALL_WMS == *dwm* ]] && install_suckless [[ $INSTALL_WMS == *awesome* ]] && install_awesome - [[ $LOGIN_WM =~ (startkde|gnome-session) ]] && sed -i '/super/d' $MNT/home/$NEWUSER/.xprofile /root/.xprofile - + + # remove some commands from ~/.xprofile when using KDE or Gnome as the login session + if [[ $LOGIN_WM =~ (startkde|gnome-session) ]]; then + sed -i '/super/d' $MNT/home/$NEWUSER/.xprofile $MNT/root/.xprofile + sed -i '/nitrogen/d' $MNT/home/$NEWUSER/.xprofile $MNT/root/.xprofile + sed -i '/al-compositor/d' $MNT/home/$NEWUSER/.xprofile $MNT/root/.xprofile + sed -i '/compton/d' $MNT/home/$NEWUSER/.xprofile $MNT/root/.xprofile + fi + return 0 }