This commit is contained in:
tavo 2024-05-16 14:07:18 -06:00
parent ba4087a82b
commit 89fcd05228
3 changed files with 11 additions and 2 deletions

View file

@ -86,3 +86,11 @@ firmador_libre() {
(cd "$DIR" && curl -O "$FIRMADOR")
# Add DESKTOP entry
}
set_menu() {
if [ -z "$MENU" ] ; then
command -v zenity > /dev/null && MENU="zenity" && return 0
command -v kdialog > /dev/null && MENU="kdialog" && return 0
fi
}

View file

@ -5,7 +5,7 @@ echo_debug() { # DEBUG
printf '\033[1mDEBUG: %s...\033[0m\n' "$1" # DEBUG
} # DEBUG
alias tsudo 'printf "%s" "$SUDO_PASSWORD" | sudo -Skp ""'
alias tsudo='printf "%s" "$SUDO_PASSWORD" | sudo -Skp ""'
debian_install_certs() {
# Source: https://fran.cr/instalar-firma-digital-costa-rica-gnu-linux-ubuntu-debian/

View file

@ -7,8 +7,9 @@
# main
set_lang
set_version
set_menu
if command -v zenity > /dev/null ; then
if [ "$MENU" = "zenity" ] ; then
echo_debug "Iniciando zenity" # DEBUG
MENU="zenity"
zenity --title "$TITLE" --text "$PROMPT_WELCOME" --info