Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions usr/bin/big-hardware-info
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down