From 1b0f9bba7a8b24a979a8bde5060fa5196b201541 Mon Sep 17 00:00:00 2001 From: l1ghty <28695765+l1ghty@users.noreply.github.com> Date: Sat, 19 Jul 2025 23:22:18 +0200 Subject: [PATCH 1/4] boot.sh: Warning on installations currently not using GNOME --- boot.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/boot.sh b/boot.sh index 8318318ea..db46d695f 100755 --- a/boot.sh +++ b/boot.sh @@ -14,6 +14,11 @@ echo -e "$ascii_art" echo "=> Omakub is for fresh Ubuntu 24.04+ installations only!" echo -e "\nBegin installation (or abort with ctrl+c)..." +if [[ ! "$XDG_CURRENT_DESKTOP" =~ "GNOME" ]]; then + echo "GNOME is NOT the current Desktop. This might be not a fresh Ubuntu installation!!!" + read -p "Press Enter to continue anyway, or Ctrl+C to exit." +fi + sudo apt-get update >/dev/null sudo apt-get install -y git >/dev/null From e473f7386d5b9775d6577a1855dbae284e4a46b0 Mon Sep 17 00:00:00 2001 From: l1ghty <28695765+l1ghty@users.noreply.github.com> Date: Wed, 23 Jul 2025 04:42:46 +0200 Subject: [PATCH 2/4] Check if the current desktop environment is GNOME --- install/check-version.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install/check-version.sh b/install/check-version.sh index 34780fa2d..54a1b725c 100644 --- a/install/check-version.sh +++ b/install/check-version.sh @@ -26,3 +26,10 @@ if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "i686" ]; then echo "Installation stopped." exit 1 fi + +# Check if the current desktop environment is GNOME +if [[ ! "$XDG_CURRENT_DESKTOP" =~ "GNOME" ]]; then + echo "GNOME is NOT the current desktop environment. This might not be a fresh Ubuntu installation!!!" + echo "Press Enter to continue anyway, or Ctrl+C to exit." + read -r _ Date: Wed, 23 Jul 2025 04:49:26 +0200 Subject: [PATCH 3/4] remove old desktop environment check --- boot.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/boot.sh b/boot.sh index db46d695f..8318318ea 100755 --- a/boot.sh +++ b/boot.sh @@ -14,11 +14,6 @@ echo -e "$ascii_art" echo "=> Omakub is for fresh Ubuntu 24.04+ installations only!" echo -e "\nBegin installation (or abort with ctrl+c)..." -if [[ ! "$XDG_CURRENT_DESKTOP" =~ "GNOME" ]]; then - echo "GNOME is NOT the current Desktop. This might be not a fresh Ubuntu installation!!!" - read -p "Press Enter to continue anyway, or Ctrl+C to exit." -fi - sudo apt-get update >/dev/null sudo apt-get install -y git >/dev/null From 15e09df5cec436b323a95930271a21040a2f7413 Mon Sep 17 00:00:00 2001 From: l1ghty <28695765+l1ghty@users.noreply.github.com> Date: Wed, 23 Jul 2025 05:07:49 +0200 Subject: [PATCH 4/4] update warning text --- install/check-version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install/check-version.sh b/install/check-version.sh index 54a1b725c..c381234c4 100644 --- a/install/check-version.sh +++ b/install/check-version.sh @@ -29,7 +29,8 @@ fi # Check if the current desktop environment is GNOME if [[ ! "$XDG_CURRENT_DESKTOP" =~ "GNOME" ]]; then - echo "GNOME is NOT the current desktop environment. This might not be a fresh Ubuntu installation!!!" + echo "GNOME is NOT the current desktop environment!" + echo "A modified version without GNOME WILL NOT WORK!" echo "Press Enter to continue anyway, or Ctrl+C to exit." read -r _