Removing tmux.service -- accounted for in EtcFiles/profile.d/shadowarch-session.sh

Adding session dependence to Ansible
Ensuring EtcFiles/profile.d/shadowarch-ssh.sh starts ssh-agent user
service
This commit is contained in:
2024-03-30 14:32:43 -05:00
parent e3be67286d
commit 3253c180fc
6 changed files with 9 additions and 4 deletions

View File

@@ -13,6 +13,6 @@ if [ -n "$SSH_CLIENT" ]; then
fi;
### XFCE4 ###
elif [ `who -m | egrep "^$(whoami)" | awk '{ print $2; }' | egrep -c "^tty"` -eq 1 ] && [ -x /usr/sbin/startxfce4 ] && [ `pgrep -ac xinit` -eq 0 ] && [ `whoami` != 'root' ]; then
elif [ `who -m | grep -E "^$(whoami)" | awk '{ print $2; }' | grep -E -c "^tty"` -eq 1 ] && [ -x /usr/sbin/startxfce4 ] && [ `pgrep -ac xinit` -eq 0 ] && [ `whoami` != 'root' ]; then
exec startxfce4
fi