From 760400936d18a46a10459236b6ad35dcb930f8c9 Mon Sep 17 00:00:00 2001 From: Ward Nakchbandi Date: Sun, 25 Sep 2022 20:40:27 +0300 Subject: [PATCH] commit --- .../nobara-layouts/layout-scripts/gnome2.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/etc/nobara/scripts/nobara-layouts/layout-scripts/gnome2.sh b/src/etc/nobara/scripts/nobara-layouts/layout-scripts/gnome2.sh index 11af736..7327931 100755 --- a/src/etc/nobara/scripts/nobara-layouts/layout-scripts/gnome2.sh +++ b/src/etc/nobara/scripts/nobara-layouts/layout-scripts/gnome2.sh @@ -68,18 +68,11 @@ if [ -d "$HOME/.local/share/gnome-shell/extensions/window-list@gnome-shell-exten else mkdir -p "$HOME/.cache/nobara-layouts/extensions/" cd "$HOME/.cache/nobara-layouts/extensions/" - ls window-listgnome-shell-extensions.gcampax.github.com.v43.shell-extension.zip || wget hhttps://extensions.gnome.org/extension-data/window-listgnome-shell-extensions.gcampax.github.com.v43.shell-extension.zip + ls window-listgnome-shell-extensions.gcampax.github.com.v43.shell-extension.zip || wget https://extensions.gnome.org/extension-data/window-listgnome-shell-extensions.gcampax.github.com.v43.shell-extension.zip gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/window-listgnome-shell-extensions.gcampax.github.com.v43.shell-extension.zip" export RELOG_NEEDED=1 fi -if [[ "$RELOG_NEEDED" == 1 ]]; then - if zenity --question --text="New extensions have been installed!, reload required!" - then - gnome-session-quit --force --no-prompt - fi -fi - # Launch new instance if [ -d "$HOME/.local/share/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com" ]; then @@ -111,6 +104,14 @@ else export RELOG_NEEDED=1 fi +if [[ "$RELOG_NEEDED" == 1 ]]; then + if zenity --question --text="New extensions have been installed!, reload required!" + then + gnome-session-quit --force --no-prompt + fi +fi + + if [[ "$RELOG_NEEDED" == 1 ]]; then if zenity --question --text="New extensions have been installed!, reload required!" then