fix: .zprofile do nothing if DISPLAY is set

This commit is contained in:
ange 2024-05-03 22:30:33 +02:00
parent b3583558e7
commit 0cb4c9ebf7
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
2 changed files with 3 additions and 3 deletions

View file

@ -1,9 +1,9 @@
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
[ "$XDG_VTNR" = 1 ] && {
[ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ] && {
GUILOG="$HOME/.local/share/xorg/gui.log"
mv "$GUILOG" "$GUILOG.old"
mv -f "$GUILOG" "$GUILOG.old"
export XDG_CURRENT_DESKTOP=Unity
exec startx &> "$GUILOG"