fix: .zprofile do nothing if DISPLAY is set
This commit is contained in:
parent
b3583558e7
commit
0cb4c9ebf7
@ -1 +1 @@
|
|||||||
Subproject commit bbc67f736e22c37c23f2c11a05bfa23b715af30c
|
Subproject commit 99d3e799b46f5c2a1fc0d7a42d7ab452de48c067
|
@ -1,9 +1,9 @@
|
|||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
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"
|
GUILOG="$HOME/.local/share/xorg/gui.log"
|
||||||
|
|
||||||
mv "$GUILOG" "$GUILOG.old"
|
mv -f "$GUILOG" "$GUILOG.old"
|
||||||
|
|
||||||
export XDG_CURRENT_DESKTOP=Unity
|
export XDG_CURRENT_DESKTOP=Unity
|
||||||
exec startx &> "$GUILOG"
|
exec startx &> "$GUILOG"
|
||||||
|
Loading…
Reference in New Issue
Block a user