diff --git a/usr/bin/big-hardware-info b/usr/bin/big-hardware-info index f58417a5..58b8b65b 100755 --- a/usr/bin/big-hardware-info +++ b/usr/bin/big-hardware-info @@ -54,12 +54,12 @@ function sh_main { cd "$drivers_path" || exit 1 - # Comandos específicos para cada ambiente - if [[ "$XDG_CURRENT_DESKTOP" == "GNOME" ]]; then - TITLE=big-hardware-info - else - TITLE="Informações sobre o Hardware" - fi +# Comandos específicos para cada ambiente +if [[ "$XDG_CURRENT_DESKTOP" == "GNOME" ]]; then + title="big-hardware-info" +else + title=$"Informações sobre o Hardware" +fi # env para definir as variáveis de ambiente apenas para a execução do comando # eliminado a necessidade de um subshell e definindo as variáveis de ambiente somente para a execução do comando específico @@ -68,7 +68,7 @@ function sh_main { WINIT_UNIX_BACKEND=x11 \ GDK_BACKEND=x11 \ GSK_RENDERER=cairo \ - bash bigbashview -n "$TITLE" -s 1020x620 loading.sh.htm?toshow=show -i hardware-info.svg + bash bigbashview -n "$title" -s 1020x620 loading.sh.htm?toshow=show -i hardware-info.svg } #sh_debug