Skip to content

Commit

Permalink
added 4 confirmation zenity
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabedikartola2 committed Nov 10, 2022
1 parent f87be79 commit 019d9f7
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions usr/share/bigbashview/bcc/apps/biglinux-themes-gui/grub.run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@
export TEXTDOMAINDIR="/usr/share/locale"
export TEXTDOMAIN=biglinux-session-and-themes

pkexec ./grub1.run | zenity --width=300 --progress --title=Grub --pulsate --no-cancel --auto-close --text $"Aplicando, aguarde..."

zenity --info --title=Grub --text $"Concluído!"
INPUT=$(grep "timeout_style=menu" /etc/grub.d/30_os-prober)
if [ -n "$INPUT" ]; then
zenity --question --width=300 --title=Grub --text $"Cuidado você perderá acesso aos SnapShots, tem certeza que deseja ocultar o grub?"
if [ "$?" = "0" ];then
zenity --question --width=300 --title=Grub --text $"Você saberá retornar o Grub em caso de falha?"
if [ "$?" = "0" ];then
zenity --question --width=300 --title=Grub --text $"Você saberá acessar os SnapShots sem acesso ao modo Gráfico?"
if [ "$?" = "0" ];then
zenity --question --width=300 --title=Grub --text $"Você está completamente seguro dessa aplicação?"
if [ "$?" = "0" ];then
pkexec ./grub1.run | zenity --width=300 --progress --title=Grub --pulsate --no-cancel --auto-close --text $"Aplicando, aguarde..."
zenity --info --title=Grub --text $"Concluído!"
fi
fi
fi
fi
else
pkexec ./grub1.run | zenity --width=300 --progress --title=Grub --pulsate --no-cancel --auto-close --text $"Aplicando, aguarde..."
zenity --info --title=Grub --text $"Concluído!"
fi

0 comments on commit 019d9f7

Please sign in to comment.