From 3387dc940d02c556c747acf553cb6be85df21277 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Fri, 2 Jul 2021 13:35:22 +0900 Subject: [PATCH] Left GUI detection code. Just as interesting code. --- script/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/config.sh b/script/config.sh index 85dee04..726785e 100644 --- a/script/config.sh +++ b/script/config.sh @@ -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 \ No newline at end of file