fish: verify if systemctl exists before trying to use it

This commit is contained in:
lelgenio 2020-03-22 21:32:13 -03:00
parent bfc582adf0
commit 82127e7d28
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ set -x PAGER less
exec startx i3
end
if test "$XDG_VTNR" = 1 -a -z "$DISPLAY" #faster like this
if systemctl -q is-active graphical.target
if command -v systemctl -a systemctl -q is-active graphical.target
export _JAVA_AWT_WM_NONREPARENTING=1
export GTK_CSD=0
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0