Add function

Signed-off-by: Stefano Capitani's avatarSte74 <stefano@manjaro.org>
parent 355190ed
......@@ -7,3 +7,4 @@ gnome-shell-extension-arc-menu
gnome-shell-extension-dash-to-dock
chrome-gnome-shell
manjaro-gdm-branding
manjaro-gdm-theme
......@@ -15,7 +15,7 @@ manjaro_stuff=$(cat assets)
manjaro=/usr/share/icons/manjaro/maia/maia.svg
warning=/usr/share/icons/hicolor/40x40/status/aur-warning.png
yad --title "Manjaro Gnome Resetting" --on-top --center --window-icon=$manjaro --image=$warning --width=550 --fixed \
yad --title "Manjaro Gnome Resetting Tool" --on-top --center --window-icon=$manjaro --image=$warning --width=550 --fixed \
--text '
<span font="11">This utility perform you to set a Vanilla Gnome Session:</span>
......@@ -26,7 +26,25 @@ configurations to help you to obtain a vanilla gnome session.</span>
if [[ $? == 0 ]]; then
yes | pkexec pamac remove ${manjaro_stuff} | yad --progress --title "Manjaro Gnome Resetting" --progress-text=Removing --pulsate --auto-close
if [[ -f /var/lib/pacman/db.lck ]]; then
yad --title "Manjaro Gnome Resetting Tool" --on-top --center --window-icon=$manjaro --image=$warning --width=550 --fixed \
--text '
<span foreground="red" font="11">Another install/remove session is running:
Abort or press Ok to force the execution</span>' --text-align=left;
if [[ $? == 0 ]]; then
gksu-polkit rm /var/lib/pacman/db.lck
else exit 1
fi
fi
yes | pkexec pamac remove ${manjaro_stuff} | yad --progress --title "Manjaro Gnome Resetting Tool" --progress-text=Removing --pulsate --auto-close
yad --title "Manjaro Gnome Resetting Tool" --on-top --center --window-icon=$manjaro --image=$warning --width=550 --fixed \
--text '
<span font="11">Done, enjoy with Manjaro Gnome Vanilla.</span>'
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment