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 }