This commit is contained in:
Ward Nakchbandi 2022-09-25 20:40:27 +03:00
parent bad630ba49
commit 760400936d

View File

@ -68,18 +68,11 @@ if [ -d "$HOME/.local/share/gnome-shell/extensions/window-list@gnome-shell-exten
else else
mkdir -p "$HOME/.cache/nobara-layouts/extensions/" mkdir -p "$HOME/.cache/nobara-layouts/extensions/"
cd "$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" gnome-extensions install "$HOME/.cache/nobara-layouts/extensions/window-listgnome-shell-extensions.gcampax.github.com.v43.shell-extension.zip"
export RELOG_NEEDED=1 export RELOG_NEEDED=1
fi 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 # Launch new instance
if [ -d "$HOME/.local/share/gnome-shell/extensions/launch-new-instance@gnome-shell-extensions.gcampax.github.com" ]; then 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 export RELOG_NEEDED=1
fi 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 [[ "$RELOG_NEEDED" == 1 ]]; then
if zenity --question --text="New extensions have been installed!, reload required!" if zenity --question --text="New extensions have been installed!, reload required!"
then then