Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duntstify -i icon doesnt show with /tmp/image.png #1445

Open
gh0stzk opened this issue Feb 24, 2025 · 25 comments
Open

duntstify -i icon doesnt show with /tmp/image.png #1445

gh0stzk opened this issue Feb 24, 2025 · 25 comments

Comments

@gh0stzk
Copy link

gh0stzk commented Feb 24, 2025

Hello maybe this related to #1408

Im using arch linux with dunst 1.12.1-1 and libnotify 0.8.4-1

this code not work
dunstify -i /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

But if i chenge to -I it works.

dunstify -I /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

I need to change all my scripts or is a bug? i see a commit to fix it but apparently still the bug.

But reading the manual i think i need to change my scripts:

       -i, --icon=ICON
           Specifies an icon to display with the notification.

       -I, --raw_icon=PATH
           Path to the icon to be sent as raw image data.

And i already see and issue with --replace=ID segmentation fault bug, i have this bug too.

@bynect
Copy link
Member

bynect commented Feb 24, 2025

Do you have recursive icon lookup enable?

@gh0stzk
Copy link
Author

gh0stzk commented Feb 24, 2025

Yes Sr. this is the part of icons conf i have in my dunst config file.

enable_recursive_icon_lookup = true
icon_theme = "TokyoNight-SE, Adwaita"
icon_position = left
min_icon_size = 60
max_icon_size = 90
icon_corner_radius = 6

@bynect
Copy link
Member

bynect commented Feb 24, 2025

Thanks. I'll look into it. Meanwhile if you can could you try if dinst 1.11 worked correctly?

@gh0stzk
Copy link
Author

gh0stzk commented Feb 24, 2025

i assume is with all paths because i have this little script to change brightness and show notification and the notifications breaks days ago:

this is part of the code: with the -I works fine.

DIR="$HOME/.config/bspwm/src/assets"
icon="$DIR/brightness.svg"

dunstify "Brightness $brightness%" -i "$icon" -r 5555 -u normal \
             -h "int:value:$brightness"

Yeah let me downgrade dunst and i will reply soon.

@gh0stzk
Copy link
Author

gh0stzk commented Feb 24, 2025

i downgraded to dunst-1.11.0-1

And my image doesnt show but now an informative icon appears

Image

But im pretty sure is because the config file.. i cant find the commit before when i changed the config to work with dunst 1.12

Beyond that, dunstify -i /path/ should work I think, but it shows an alternative icon.

@bynect
Copy link
Member

bynect commented Feb 24, 2025

Beyond that, dunstify -i /path/ should work I think, but it shows an alternative icon.

Could you clarify this point.

Does dunstify -i /icon actually produce the intended icon? What about notify-send -i /icon in v1.11?

@gh0stzk
Copy link
Author

gh0stzk commented Feb 24, 2025

Ok sorry, let me start with dunst 1.12

This code not work, only show the text but not the image:
dunstify -i /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

Image

But with the -I flag works. And works too with notify-send these 2 commands works and shows the image.

dunstify -I /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"
notify-send -i /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

Image


Now with dunst 1.11

My cover song still not show with command:
dunstify -i /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

Image

Now with -I flag works as intended same as dunst 1.12
dunstify -I /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

Image

Now the command:
notify-send -i /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)"

works fine too with dunst 1.11

Image

So in 1.11 and 1.12 dunstify -i /path/to/icon dont work.
notify-send -i /path/to/icon works fine in 1.11 and 1.12

@bynect
Copy link
Member

bynect commented Feb 24, 2025

Ok thank you. It seems this problem is unrelated to 1408 and only affects dunstify 👍

@bynect
Copy link
Member

bynect commented Feb 25, 2025

with libnotify-0.8.3 dunstify works for me. so I will try to update to the new version of libnotify

@bynect
Copy link
Member

bynect commented Feb 25, 2025

I tried 0.8.4 and it does work too with a /tmp/image. maybe the problem is somewhere else? could you send a log of dunst when dunstify is used?

dunst -verbosity debug

@gh0stzk
Copy link
Author

gh0stzk commented Feb 25, 2025

Ok sure! i will explain my setup and give you logs from dunst -verbosity debug

Im using bspwm, in my bspwmrc i have this line:

pidof -q dunst || { dunst -config "${HOME}"/.config/bspwm/src/config/dunstrc & }

This will launch dunst only the first time, if i reload the wm dunst will not be loaded again.

Now bspwmrc also loads my Theme.sh because i have more than one theme in bspwm. But changing themes does not reload the wm, it only applies changes, for dunst they are these:

theme.sh
# Set dunst config
set_dunst_config() {
	dunst_config_file="$HOME/.config/bspwm/src/config/dunstrc"

	sed -i "$dunst_config_file" \
		-e "s/origin = .*/origin = ${dunst_origin}/" \
		-e "s/offset = .*/offset = ${dunst_offset}/" \
		-e "s/transparency = .*/transparency = ${dunst_transparency}/" \
		-e "s/^corner_radius = .*/corner_radius = ${dunst_corner_radius}/" \
		-e "s/frame_width = .*/frame_width = ${dunst_border}/" \
		-e "s/frame_color = .*/frame_color = \"${dunst_frame_color}\"/" \
		-e "s/font = .*/font = ${dunst_font}/" \
		-e "s/foreground='.*'/foreground='${blue}'/" \
		-e "s/icon_theme = .*/icon_theme = \"${dunst_icon_theme}, Adwaita\"/"

	sed -i '/urgency_low/Q' "$dunst_config_file"
	cat >>"$dunst_config_file" <<-_EOF_
		[urgency_low]
		timeout = 3
		background = "${bg}"
		foreground = "${green}"

		[urgency_normal]
		timeout = 5
		background = "${bg}"
		foreground = "${fg}"

		[urgency_critical]
		timeout = 0
		background = "${bg}"
		foreground = "${red}"
	_EOF_

	dunstctl reload "$dunst_config_file"
}

As you can see I only change colors and a few other things and in the end I reload dunst with dunstctl reload configfile..

And thats it, thats how it works, I don't think it has anything to do with the -i flag not working.

My dunstrc is this:

dunstrc
[global]

monitor = 0
follow = mouse

width = (300, 400)
#height = (0, 200)
origin = top-right
offset = (20, 60)
scale = 0

notification_limit = 20
indicate_hidden = yes

transparency = 0
corner_radius = 6

gap_size = 4
separator_height = 1
separator_color = "#abb2bf"

padding = 15
horizontal_padding = 15
text_icon_padding = 0

frame_width = 0
frame_color = "#222330"

sort = no
idle_threshold = 0

font = JetBrainsMono NF Medium 9
line_height = 0

markup = full
format = "<span size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>%s</span>\n%b"
alignment = center
vertical_alignment = center

show_age_threshold = 60
#ellipsize = middle
ignore_newline = no
stack_duplicates = false
hide_duplicate_count = true

show_indicators = yes

enable_recursive_icon_lookup = true
icon_theme = "TokyoNight-SE, Adwaita"
icon_position = left
min_icon_size = 60
max_icon_size = 90
icon_corner_radius = 6

sticky_history = yes
history_length = 25

#dmenu = /usr/bin/rofi -config "$HOME/.config/rofi/notification.rasi" -dmenu -p dunst:
browser = /usr/bin/xdg-open
always_run_script = true
ignore_dbusclose = false

force_xinerama = false

mouse_left_click = close_current
mouse_middle_click = do_action, close_current
mouse_right_click = close_all

progress_bar = true
progress_bar_height = 10
progress_bar_frame_width = 0
progress_bar_min_width = 125
progress_bar_max_width = 250
progress_bar_corner_radius = 5

title = Dunst
class = Dunst

[urgency_low]
timeout = 3
background = "#1a1b26"
foreground = "#9ece6a"

[urgency_normal]
timeout = 5
background = "#1a1b26"
foreground = "#c0caf5"

[urgency_critical]
timeout = 0
background = "#1a1b26"
foreground = "#f7768e"

Now i kill dunst killall dunst i will open a new terminal and load dunst config with debug:

dunst -conf $HOME/.config/bspwm/src/config/dunstrc -verbosity debug &

The first debug log when i launch dunst is this:

debug log when launch dunst
[1] 6269
DEBUG: [   load_settings:0267] Setting defaults
DEBUG: [    set_defaults:0489] Initializing settings
DEBUG: [     set_setting:0462] [urgency_low] Trying to set icon to
DEBUG: [     set_setting:0462] [urgency_normal] Trying to set icon to
DEBUG: [     set_setting:0462] [urgency_critical] Trying to set icon to
DEBUG: [     set_setting:0462] [global] Trying to set format to <b>%s</b>
%b
DEBUG: [     set_setting:0462] [global] Trying to set corners to all
DEBUG: [string_parse_enum:0030] Setting enum to 15 (all)
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_corners to all
DEBUG: [string_parse_enum:0030] Setting enum to 15 (all)
DEBUG: [     set_setting:0462] [global] Trying to set icon_corners to all
DEBUG: [string_parse_enum:0030] Setting enum to 15 (all)
DEBUG: [     set_setting:0462] [*] Trying to set frame_color to #888888
DEBUG: [     set_setting:0462] [experimental] Trying to set per_monitor_dpi to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set force_xinerama to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set force_xwayland to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set font to Monospace 8
DEBUG: [     set_setting:0462] [global] Trying to set sort to true
DEBUG: [string_parse_enum:0030] Setting enum to 2 (true)
DEBUG: [     set_setting:0462] [global] Trying to set indicate_hidden to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set ignore_dbusclose to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set ignore_newline to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set idle_threshold to 0
DEBUG: [     set_setting:0462] [global] Trying to set monitor to 0
DEBUG: [     set_setting:0462] [global] Trying to set title to Dunst
DEBUG: [     set_setting:0462] [global] Trying to set class to Dunst
DEBUG: [     set_setting:0462] [global] Trying to set shrink to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set line_height to 0
DEBUG: [     set_setting:0462] [global] Trying to set show_age_threshold to 60
DEBUG: [     set_setting:0462] [global] Trying to set hide_duplicate_count to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set sticky_history to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set history_length to 20
DEBUG: [     set_setting:0462] [global] Trying to set show_indicators to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set separator_height to 2
DEBUG: [     set_setting:0462] [global] Trying to set padding to 8
DEBUG: [     set_setting:0462] [global] Trying to set horizontal_padding to 8
DEBUG: [     set_setting:0462] [global] Trying to set text_icon_padding to 0
DEBUG: [     set_setting:0462] [global] Trying to set transparency to 0
DEBUG: [     set_setting:0462] [global] Trying to set corner_radius to 0
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_height to 10
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_min_width to 150
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_max_width to 300
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_frame_width to 1
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_corner_radius to 0
DEBUG: [     set_setting:0462] [global] Trying to set icon_corner_radius to 0
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set stack_duplicates to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set dmenu to /usr/bin/dmenu -p dunst
DEBUG: [     set_setting:0462] [global] Trying to set browser to /usr/bin/xdg-open
DEBUG: [     set_setting:0462] [global] Trying to set always_run_script to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set follow to none
DEBUG: [string_parse_enum:0030] Setting enum to 0 (none)
DEBUG: [     set_setting:0462] [global] Trying to set scale to 0
DEBUG: [     set_setting:0462] [global] Trying to set separator_color to frame
DEBUG: [string_parse_sepcolor:0165] parsing sep_color
DEBUG: [string_parse_enum:0030] Setting enum to 2 (frame)
DEBUG: [     set_setting:0462] [global] Trying to set vertical_alignment to center
DEBUG: [string_parse_enum:0030] Setting enum to 1 (center)
DEBUG: [     set_setting:0462] [global] Trying to set layer to overlay
DEBUG: [string_parse_enum:0030] Setting enum to 3 (overlay)
DEBUG: [     set_setting:0462] [global] Trying to set mouse_left_click to close_current
DEBUG: [ set_from_string:0427] list type 1
DEBUG: [string_parse_enum:0030] Setting enum to 2 (close_current)
DEBUG: [     set_setting:0462] [global] Trying to set mouse_middle_click to do_action, close_current
DEBUG: [ set_from_string:0427] list type 1
DEBUG: [string_parse_enum:0030] Setting enum to 1 (do_action)
DEBUG: [string_parse_enum:0030] Setting enum to 2 (close_current)
DEBUG: [     set_setting:0462] [global] Trying to set mouse_right_click to close_all
DEBUG: [ set_from_string:0427] list type 1
DEBUG: [string_parse_enum:0030] Setting enum to 3 (close_all)
DEBUG: [     set_setting:0462] [global] Trying to set icon_theme to Adwaita
DEBUG: [ set_from_string:0427] list type 3
DEBUG: [     set_setting:0462] [global] Trying to set icon_path to /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
DEBUG: [     set_setting:0462] [global] Trying to set enable_recursive_icon_lookup to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set enable_posix_regex to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set frame_width to 3
DEBUG: [     set_setting:0462] [urgency_low] Trying to set background to #222222
DEBUG: [     set_setting:0462] [urgency_low] Trying to set foreground to #888888
DEBUG: [     set_setting:0462] [urgency_low] Trying to set highlight to #7f7fff
DEBUG: [     set_setting:0462] [urgency_low] Trying to set frame_color to #888888
DEBUG: [     set_setting:0462] [urgency_low] Trying to set timeout to 10
DEBUG: [     set_setting:0462] [urgency_normal] Trying to set background to #285577
DEBUG: [     set_setting:0462] [urgency_normal] Trying to set foreground to #ffffff
DEBUG: [     set_setting:0462] [urgency_normal] Trying to set highlight to #1745d1
DEBUG: [     set_setting:0462] [urgency_normal] Trying to set frame_color to #888888
DEBUG: [     set_setting:0462] [urgency_normal] Trying to set timeout to 10
DEBUG: [     set_setting:0462] [urgency_critical] Trying to set background to #900000
DEBUG: [     set_setting:0462] [urgency_critical] Trying to set foreground to #ffffff
DEBUG: [     set_setting:0462] [urgency_critical] Trying to set highlight to #ff6666
DEBUG: [     set_setting:0462] [urgency_critical] Trying to set frame_color to #ff0000
DEBUG: [     set_setting:0462] [urgency_critical] Trying to set timeout to 0
DEBUG: [     set_setting:0462] [global] Trying to set origin to top-right
DEBUG: [string_parse_enum:0030] Setting enum to 9 (top-right)
DEBUG: [     set_setting:0462] [global] Trying to set width to 300
DEBUG: [     set_setting:0462] [global] Trying to set height to (0, 300)
DEBUG: [     set_setting:0462] [global] Trying to set offset to (10, 50)
DEBUG: [     set_setting:0462] [global] Trying to set notification_limit to 20
DEBUG: [     set_setting:0462] [global] Trying to set close to none
DEBUG: [     set_setting:0462] [global] Trying to set close_all to none
DEBUG: [     set_setting:0462] [global] Trying to set history to none
DEBUG: [     set_setting:0462] [global] Trying to set context to none
DEBUG: [     set_setting:0462] [global] Trying to set gap_size to 0
DEBUG: [process_conf_file:0244] Reading config file '/home/z0mbi3/.config/bspwm/src/config/dunstrc'
INFO: Opened '/home/z0mbi3/.config/bspwm/src/config/dunstrc' (fd: '3')
DEBUG: [process_conf_file:0253] Loading settings
DEBUG: [   save_settings:0517] Entering section [global]
DEBUG: [     set_setting:0462] [global] Trying to set monitor to 0
DEBUG: [     set_setting:0462] [global] Trying to set follow to mouse
DEBUG: [string_parse_enum:0030] Setting enum to 1 (mouse)
DEBUG: [     set_setting:0462] [global] Trying to set width to (300, 400)
DEBUG: [     set_setting:0462] [global] Trying to set origin to top-right
DEBUG: [string_parse_enum:0030] Setting enum to 9 (top-right)
DEBUG: [     set_setting:0462] [global] Trying to set offset to (20, 60)
DEBUG: [     set_setting:0462] [global] Trying to set scale to 0
DEBUG: [     set_setting:0462] [global] Trying to set notification_limit to 20
DEBUG: [     set_setting:0462] [global] Trying to set indicate_hidden to yes
DEBUG: [string_parse_enum:0030] Setting enum to 1 (yes)
DEBUG: [     set_setting:0462] [global] Trying to set transparency to 0
DEBUG: [     set_setting:0462] [global] Trying to set corner_radius to 6
DEBUG: [     set_setting:0462] [global] Trying to set gap_size to 4
DEBUG: [     set_setting:0462] [global] Trying to set separator_height to 1
DEBUG: [     set_setting:0462] [global] Trying to set separator_color to #abb2bf
DEBUG: [string_parse_sepcolor:0165] parsing sep_color
DEBUG: [     set_setting:0462] [global] Trying to set padding to 15
DEBUG: [     set_setting:0462] [global] Trying to set horizontal_padding to 15
DEBUG: [     set_setting:0462] [global] Trying to set text_icon_padding to 0
DEBUG: [     set_setting:0462] [global] Trying to set frame_width to 0
DEBUG: [   save_settings:0534] Adding rule 'frame_color = #222330' to special section global
DEBUG: [        set_rule:0483] Creating new rule 'global'
DEBUG: [     set_setting:0462] [global] Trying to set sort to no
DEBUG: [string_parse_enum:0030] Setting enum to 0 (no)
DEBUG: [     set_setting:0462] [global] Trying to set idle_threshold to 0
DEBUG: [     set_setting:0462] [global] Trying to set font to JetBrainsMono NF Medium 9
DEBUG: [     set_setting:0462] [global] Trying to set line_height to 0
DEBUG: [   save_settings:0534] Adding rule 'markup = full' to special section global
DEBUG: [string_parse_enum:0030] Setting enum to 3 (full)
DEBUG: [   save_settings:0534] Adding rule 'format = <span size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>%s</span>\n%b' to special section global
DEBUG: [   save_settings:0534] Adding rule 'alignment = center' to special section global
DEBUG: [string_parse_enum:0030] Setting enum to 1 (center)
DEBUG: [     set_setting:0462] [global] Trying to set vertical_alignment to center
DEBUG: [string_parse_enum:0030] Setting enum to 1 (center)
DEBUG: [     set_setting:0462] [global] Trying to set show_age_threshold to 60
DEBUG: [     set_setting:0462] [global] Trying to set ignore_newline to no
DEBUG: [string_parse_enum:0030] Setting enum to 0 (no)
DEBUG: [     set_setting:0462] [global] Trying to set stack_duplicates to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set hide_duplicate_count to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set show_indicators to yes
DEBUG: [string_parse_enum:0030] Setting enum to 1 (yes)
DEBUG: [     set_setting:0462] [global] Trying to set enable_recursive_icon_lookup to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set icon_theme to TokyoNight-SE, Adwaita
DEBUG: [ set_from_string:0427] list type 3
DEBUG: [   save_settings:0534] Adding rule 'icon_position = left' to special section global
DEBUG: [string_parse_enum:0030] Setting enum to 0 (left)
DEBUG: [   save_settings:0534] Adding rule 'min_icon_size = 60' to special section global
DEBUG: [   save_settings:0534] Adding rule 'max_icon_size = 90' to special section global
DEBUG: [     set_setting:0462] [global] Trying to set icon_corner_radius to 6
DEBUG: [     set_setting:0462] [global] Trying to set sticky_history to yes
DEBUG: [string_parse_enum:0030] Setting enum to 1 (yes)
DEBUG: [     set_setting:0462] [global] Trying to set history_length to 25
DEBUG: [     set_setting:0462] [global] Trying to set browser to /usr/bin/xdg-open
DEBUG: [     set_setting:0462] [global] Trying to set always_run_script to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set ignore_dbusclose to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set force_xinerama to false
DEBUG: [string_parse_enum:0030] Setting enum to 0 (false)
DEBUG: [     set_setting:0462] [global] Trying to set mouse_left_click to close_current
DEBUG: [ set_from_string:0427] list type 1
DEBUG: [string_parse_enum:0030] Setting enum to 2 (close_current)
DEBUG: [     set_setting:0462] [global] Trying to set mouse_middle_click to do_action, close_current
DEBUG: [ set_from_string:0427] list type 1
DEBUG: [string_parse_enum:0030] Setting enum to 1 (do_action)
DEBUG: [string_parse_enum:0030] Setting enum to 2 (close_current)
DEBUG: [     set_setting:0462] [global] Trying to set mouse_right_click to close_all
DEBUG: [ set_from_string:0427] list type 1
DEBUG: [string_parse_enum:0030] Setting enum to 3 (close_all)
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar to true
DEBUG: [string_parse_enum:0030] Setting enum to 1 (true)
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_height to 10
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_frame_width to 0
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_min_width to 125
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_max_width to 250
DEBUG: [     set_setting:0462] [global] Trying to set progress_bar_corner_radius to 5
DEBUG: [     set_setting:0462] [global] Trying to set title to Dunst
DEBUG: [     set_setting:0462] [global] Trying to set class to Dunst
DEBUG: [   save_settings:0517] Entering section [urgency_low]
DEBUG: [   save_settings:0534] Adding rule 'timeout = 3' to special section urgency_low
DEBUG: [        set_rule:0483] Creating new rule 'urgency_low'
DEBUG: [   save_settings:0534] Adding rule 'background = #1a1b26' to special section urgency_low
DEBUG: [   save_settings:0534] Adding rule 'foreground = #9ece6a' to special section urgency_low
DEBUG: [   save_settings:0517] Entering section [urgency_normal]
DEBUG: [   save_settings:0534] Adding rule 'timeout = 5' to special section urgency_normal
DEBUG: [        set_rule:0483] Creating new rule 'urgency_normal'
DEBUG: [   save_settings:0534] Adding rule 'background = #1a1b26' to special section urgency_normal
DEBUG: [   save_settings:0534] Adding rule 'foreground = #c0caf5' to special section urgency_normal
DEBUG: [   save_settings:0517] Entering section [urgency_critical]
DEBUG: [   save_settings:0534] Adding rule 'timeout = 0' to special section urgency_critical
DEBUG: [        set_rule:0483] Creating new rule 'urgency_critical'
DEBUG: [   save_settings:0534] Adding rule 'background = #1a1b26' to special section urgency_critical
DEBUG: [   save_settings:0534] Adding rule 'foreground = #f7768e' to special section urgency_critical
DEBUG: [process_conf_file:0256] Checking/correcting settings
INFO: Using X11 output
DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
INFO: Detected screen 0 (VGA1)
DEBUG: [      draw_setup:0154] Trying to load font: 'JetBrainsMono NF Medium 9'
DEBUG: [      draw_setup:0156] Loaded closest matching font: 'JetBrainsMono NF'
DEBUG: [  get_theme_path:0172] Theme locations: /home/z0mbi3/.icons
DEBUG: [  get_theme_path:0172] Theme locations: /home/z0mbi3/.local/share/icons
DEBUG: [  get_theme_path:0172] Theme locations: /usr/local/share/icons
DEBUG: [  get_theme_path:0172] Theme locations: /usr/share/icons
DEBUG: [  get_theme_path:0172] Theme locations: /usr/share/pixmaps
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/TokyoNight-SE
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/TokyoNight-SE
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/TokyoNight-SE
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/TokyoNight-SE
DEBUG: [load_icon_theme_from_dir:0125] Theme has 1 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: Papirus
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/Papirus
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/Papirus
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/Papirus
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/Papirus
DEBUG: [load_icon_theme_from_dir:0125] Theme has 2 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: breeze
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/pixmaps/breeze
WARNING: Could not find theme breeze
DEBUG: [load_icon_theme_from_dir:0138] inherits: hicolor
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/hicolor
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/hicolor
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/hicolor
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/hicolor
  z0mbi3   ~ 󰅂 INFO: Adding theme TokyoNight-SE
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0125] Theme has 2 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0125] Theme has 1 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: hicolor
DEBUG: [load_icon_theme_from_dir:0138] inherits: hicolor
INFO: Adding theme Adwaita
DEBUG: [             run:0135] RUN, reason 0: DUNST_TIMER
INFO: X11: Hiding window
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '65'

Now i open ncmpcpp player, this player has an option to run a script or command when song changes, i use it to send notification with the cover image and song name and artist. This is part of the ncmpcpp config file:

execute_on_song_change  = "MediaControl nccover ; dunstify -i /tmp/cover.png "Playing..." "$(mpc --format '%title% \n%artist%' current)""

(MediaControl nccover) is my script to generate the cover image of the song.

log when i open ncmpcpp music player and this send a notification with cover image and song
  z0mbi3   ~ 󰅂 DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/Papirus
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/Papirus
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/Papirus
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/Papirus
DEBUG: [load_icon_theme_from_dir:0125] Theme has 2 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: breeze
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/breeze
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/pixmaps/breeze
WARNING: Could not find theme breeze
DEBUG: [load_icon_theme_from_dir:0138] inherits: hicolor
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/hicolor
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/hicolor
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/hicolor
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/hicolor
INFO: Adding theme TokyoNight-SE
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/Adwaita
DEBUG: [load_icon_theme_from_dir:0125] Theme has 2 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0141] Loading inherited theme
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /home/z0mbi3/.local/share/icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/local/share/icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0041] Loading theme /usr/share/icons/AdwaitaLegacy
DEBUG: [load_icon_theme_from_dir:0125] Theme has 1 inherited themes
DEBUG: [load_icon_theme_from_dir:0138] inherits: hicolor
DEBUG: [load_icon_theme_from_dir:0138] inherits: hicolor
INFO: Adding theme Adwaita
DEBUG: [             run:0135] RUN, reason 0: DUNST_TIMER
INFO: X11: Hiding window
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '65'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '19'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '18'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '19'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '18'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [         wake_up:0102] Waking up
DEBUG: [             run:0135] RUN, reason 1: DUNST_WAKEUP
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [calculate_dimensions:0346] Notification dimensions 300x90
DEBUG: [            draw:1027] Window dimensions 300x90
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [             run:0167] Sleeping for 4957 ms
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '65'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '19'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '19'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '15'
DEBUG: [x_mainloop_fd_dispatch:0303] XEvent: processing 'Expose'
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [calculate_dimensions:0346] Notification dimensions 300x90
DEBUG: [            draw:1027] Window dimensions 300x90
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [     x_get_scale:0951] X11 dpi: 96
DEBUG: [     x_get_scale:0952] X11 scale: 1.000000
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '64'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '65'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '64'
DEBUG: [             run:0135] RUN, reason 0: DUNST_TIMER
DEBUG: [signal_notification_closed:1091] Queues: Closing notification for reason: time
INFO: X11: Hiding window
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '18'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '18'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '19'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '18'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '19'
DEBUG: [x_mainloop_fd_dispatch:0394] XEvent: Ignoring '18'
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes
DEBUG: [x_mainloop_fd_dispatch:0374] XEvent: Checking for active screen changes

And thats it, the notification should look like this:

Image

But looks like this:

Image


Another thing: from man dunstctl

Reload the settings of the running dunst instance. You  can  optionally
           specify  which  configuration  files  to  use.  Otherwise,  the  config
           specified by the first invocation of  dunst  will  be  reloaded.   When
           dunst  is  reloaded  all  the  rules  are  reapplied  to  the  original
           notification, so modifications made by previous  rules  are  not  taken
           into account.

In my theme.sh I reload dunst with dunstctl reload configpath and works but if i change the command to dunstctl reload my configuration is not applied. and it should reload dunst with my configuration file. but it doesn't.

@bynect
Copy link
Member

bynect commented Feb 25, 2025

thank you. the log seems normal.
could you send the ./dunst --print printed when using dunstify and when using notify-send?
I guess that either the icon is not being sent properly to dunst.

for the config problem maybe you should open a separate issue and we'll see there

@bynect
Copy link
Member

bynect commented Feb 25, 2025

Another thing: from man dunstctl

Reload the settings of the running dunst instance. You  can  optionally
           specify  which  configuration  files  to  use.  Otherwise,  the  config
           specified by the first invocation of  dunst  will  be  reloaded.   When
           dunst  is  reloaded  all  the  rules  are  reapplied  to  the  original
           notification, so modifications made by previous  rules  are  not  taken
           into account.

In my theme.sh I reload dunst with dunstctl reload configpath and works but if i change the command to dunstctl reload my configuration is not applied. and it should reload dunst with my configuration file. but it doesn't.

thanks for pointing this out. I should have fixed it with #1447

@gh0stzk
Copy link
Author

gh0stzk commented Feb 26, 2025

thank you. the log seems normal. could you send the ./dunst --print printed when using dunstify and when using notify-send? I guess that either the icon is not being sent properly to dunst.

for the config problem maybe you should open a separate issue and we'll see there

allright i kill dunst and launched with this command:

dunst -conf $HOME/.config/bspwm/src/config/dunstrc --print &

then i send a notification with this command:

dunstify -i /tmp/cover.png "hello" "world"

and the output is:

{
	appname: 'dunstify'
	summary: 'hello'
	body: 'world'
	icon: ''
	raw_icon set: false
	icon_id: '(null)'
	desktop_entry: ''
	category:
	timeout: 5000
	start: 0
	timestamp: 19744677021
	urgency: NORMAL
	transient: 0
	formatted: '<span size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>hello</span>
world'
	fg: #c0caf5ff
	bg: #1a1b26ff
	frame: #222330ff
	highlight: #1745d1ff
	fullscreen: show
	format: <span size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>%s</span>\n%b
	progress: -1
	stack_tag:
	id: 6
	actions: {}
	script_count: 0
}

Now with notify-send :
notify-send -i /tmp/cover.png "hello" "world"

{
	appname: 'notify-send'
	summary: 'hello'
	body: 'world'
	icon: '/tmp/cover.png'
	raw_icon set: false
	icon_id: '(null)'
	desktop_entry: ''
	category:
	timeout: 5000
	start: 0
	timestamp: 19817131405
	urgency: NORMAL
	transient: 0
	formatted: '<span size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>hello</span>
world'
	fg: #c0caf5ff
	bg: #1a1b26ff
	frame: #222330ff
	highlight: #1745d1ff
	fullscreen: show
	format: <span size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>%s</span>\n%b
	progress: -1
	stack_tag:
	id: 7
	actions: {}
	script_count: 0
}

@bynect
Copy link
Member

bynect commented Feb 26, 2025

dunstify -i /tmp/cover.png "hello" "world"\n\nand the output is:\n\n{\n\tappname: 'dunstify'\n\tsummary: 'hello'\n\tbody: 'world'\n\ticon: ''\n\traw_icon set: false\n\ticon_id: '(null)'\n\tdesktop_entry: ''\n\tcategory:\n\ttimeout: 5000\n\tstart: 0\n\ttimestamp: 19744677021\n\turgency: NORMAL\n\ttransient: 0\n\tformatted: '\u003Cspan size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>hello\u003C/span>\nworld'\n\tfg: #c0caf5ff\n\tbg: #1a1b26ff\n\tframe: #222330ff\n\thighlight: #1745d1ff\n\tfullscreen: show\n\tformat: \u003Cspan size='xx-large' font_desc='Cantarell 9' weight='bold' foreground='#7aa2f7'>%s\u003C/span>\n%b\n\tprogress: -1\n\tstack_tag:\n\tid: 6\n\tactions: {}\n\tscript_count: 0\n}

Ok it seems like the icon is not being sent by dunstify somehow.

@bynect
Copy link
Member

bynect commented Feb 26, 2025

This is a really strange bug that I can't reproduce. Does it happen if you use a different path? Like /tmp/image2.jpg or something like that?

Is your version of dunstify up to date witj that of dunst?

Are the permissions of /tmp right?

@gh0stzk
Copy link
Author

gh0stzk commented Feb 26, 2025

Hello, today i test it in another PC, and the problem is there, both pcs with arch linux, all system updated. Yes it happends with all paths, i tested with images in /tmp/, in my HOME and in my ~/.config/bspwm/src/assets paths

I note the bug after an issue in my repo from a guy gh0stzk/dotfiles#421 at the end that was related with the --replace segmentation fault bug but that drives me to the -i bug.

So it's probably not just me or a problem with my setup. I just read a new issue here, about this same problem. #1448

Maybe it is related only to arch?

@bynect
Copy link
Member

bynect commented Feb 26, 2025

I will try to make an arch vm. my hypothesis right now is that the new version of libnotify is not sending the icon name

@bynect
Copy link
Member

bynect commented Feb 26, 2025

from the new version

notification: Set the icon-name property as image hint instead of as app-icon

https://gitlab.gnome.org/GNOME/libnotify/-/commit/f5842adeffdbb8675484b89867938249a65485d9

@gh0stzk
Copy link
Author

gh0stzk commented Feb 26, 2025

from the new version

notification: Set the icon-name property as image hint instead of as app-icon

oh i see, so, what should be the correct commando now?

@bynect
Copy link
Member

bynect commented Feb 26, 2025

I am investigating the solution but I think a tweak to the dunstify source is needed. you could try
dunstify -h string:image-path:/tmp/path for now

@gh0stzk
Copy link
Author

gh0stzk commented Feb 26, 2025

I am investigating the solution but I think a tweak to the dunstify source is needed. you could try dunstify -h string:image-path:/tmp/path for now

Yeah i just got it from chtgpt lol..

dunstify -h string:image-path:/tmp/cover.png "hello" "world"

this works.. finally. and for icons is the same dunstify -h string:image-path:battery-good-charging-symbolic "hello" "world"

Well... I don't know why to complicate life, -i flag worked easily and simply.

I am investigating the solution but I think a tweak to the dunstify source is needed.

thank you for your help. for now i will change the scripts to work with this new method. Probably more users come with the same problem, I will not close the issue, I will leave it to your discretion. Good morning and I appreciate your help and interest.

@bynect
Copy link
Member

bynect commented Feb 26, 2025

Well... I don't know why to complicate life, -i flag worked easily and simply

idk, they made some change in the libnotify library and spec.
but I will try to change it back in dunstify to be like notify-send

@gh0stzk
Copy link
Author

gh0stzk commented Feb 26, 2025

idkhey made some change in the libnotify library and spec. but I will try to change it back in dunstify to be like notify-send

That will be great, thank you.

@bynect
Copy link
Member

bynect commented Feb 26, 2025

if you want you can check #1449 it should fix the problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants