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

@ -1 +1 @@
Subproject commit bbc67f736e22c37c23f2c11a05bfa23b715af30c
Subproject commit 99d3e799b46f5c2a1fc0d7a42d7ab452de48c067

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"