mirror of
https://github.com/suikan4github/kaiten-yaki.git
synced 2025-12-20 10:31:17 -03:00
Left GUI detection code.
Just as interesting code.
This commit is contained in:
parent
a28dbcaa74
commit
3387dc940d
1 changed files with 7 additions and 0 deletions
|
|
@ -49,3 +49,10 @@ else
|
|||
export CRYPTPARTITION=1
|
||||
fi # EFI firmware
|
||||
|
||||
# Detect the GUI environment
|
||||
# This code is not efered. Just left because it is interestintg code.
|
||||
if env | grep -w -e XDG_SESSION_TYPE -e DISPLAY -e WAYLAND_DISPLAY > /dev/null ; then
|
||||
export GUIENV=1 # set 1 if GUI env.
|
||||
else
|
||||
export GUIENV=0 # set 0 if not GUI env.
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue