Skip to content

Commit

Permalink
rm zenity icon arg for older version
Browse files Browse the repository at this point in the history
  • Loading branch information
murkl committed Nov 8, 2024
1 parent e3295b3 commit 829229d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion d2launcher
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,6 @@ zenity_dialog() {
local help_output icon_arg
help_output=$(/usr/bin/zenity --help-"${type:2}" 2>&1)
echo "$help_output" | grep -q -- "--icon=" && icon_arg='--icon'
echo "$help_output" | grep -q -- "--icon-name=" && icon_arg='--icon-name'
local styled_text='<span font_family="'$gui_dialog_font'" font="'$gui_dialog_size'" foreground="'$gui_dialog_color'">\n'$text'</span>'
[ -n "$icon_arg" ] && icon_arg="${icon_arg}=${SCRIPT_ICON_FILE}"
zenity "$type" --width="$gui_dialog_width" --height="$gui_dialog_height" --text="$styled_text" "$icon_arg" "$@"
Expand Down

0 comments on commit 829229d

Please sign in to comment.