fish: verify if systemctl exists before trying to use it
This commit is contained in:
parent
bfc582adf0
commit
82127e7d28
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ set -x PAGER less
|
||||||
exec startx i3
|
exec startx i3
|
||||||
end
|
end
|
||||||
if test "$XDG_VTNR" = 1 -a -z "$DISPLAY" #faster like this
|
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 _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
export GTK_CSD=0
|
export GTK_CSD=0
|
||||||
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0
|
export LD_PRELOAD=/usr/lib/libgtk3-nocsd.so.0
|
||||||
|
|
Reference in a new issue