mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 02:21:17 -03:00
Fix GUI detection bug
This commit is contained in:
parent
1fd0557099
commit
124ea5cfd9
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ fi # EFI firmware
|
||||||
|
|
||||||
# Void Linux only. Ignored in Ubuntu.
|
# Void Linux only. Ignored in Ubuntu.
|
||||||
# Detect the GUI environment
|
# Detect the GUI environment
|
||||||
if env | grep XDG_SESSION_TYPE > /dev/null ; then
|
if env | grep -w -e XDG_SESSION_TYPE -e DISPLAY -e WAYLAND_DISPLAY > /dev/null ; then
|
||||||
export GUIENV=1 # set 1 if GUI env.
|
export GUIENV=1 # set 1 if GUI env.
|
||||||
else
|
else
|
||||||
export GUIENV=0 # set 0 if not GUI env.
|
export GUIENV=0 # set 0 if not GUI env.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue