gotify-desktop icon indicating copy to clipboard operation
gotify-desktop copied to clipboard

No notification on gnome

Open FoxxMD opened this issue 1 year ago • 6 comments

Installed through AUR. Config is setup with notification min_priority=1

Running in foreground I can see it gets a message but then no notification is ever created either as a toast or shown in notification history in gnome tray.

[foxx@foxx-arch ~]$ gotify-desktop
2024-12-20T14:34:25.017Z INFO  [gotify_desktop] Connected to wss://my.server.redacted/
2024-12-20T14:34:41.333Z INFO  [gotify_desktop] Got Message { id: 9493, appid: 8, text: "✅ Version 0.0.5", title: "[WARNING] BuildFailed for ntfy-alerter", priority: 5, date: "2024-12-20T14:34:41.309457971Z", app_img_filepath: Some("/home/foxx/.cache/gotify-desktop/defaultapp.png") }
OS: EndeavourOS Linux x86_64 
Kernel: 6.12.4-arch1-1 
DE: GNOME 47.2
WM: Mutter 
Shell: bash 5.2.37

FoxxMD avatar Dec 20 '24 14:12 FoxxMD

~Did you try with min-priority = 0?~ Nevermind, I see message priority is 5 in your log, so that should not be filtered.

Do you get a notification when running notify-send title test in a terminal?

desbma avatar Dec 20 '24 20:12 desbma

Yes, notify-send works fine and I get a toast. Is there any extra logging I can enable for gotify-desktop? How can I further help debug this? EDIT forgot to mention I am using wayland, if that matters.

FoxxMD avatar Dec 20 '24 21:12 FoxxMD

To get more logs, you can compile from source by cloning this repository and running cargo run.

However it seems this is a known issueof Gnome 46:

  • https://github.com/hoodie/notify-rust/issues/218
  • https://gitlab.gnome.org/GNOME/libnotify/-/issues/41

desbma avatar Dec 20 '24 22:12 desbma

Gotcha. Thanks for tracking it down. Guess I'll wait till this gets fixed upstream.

FoxxMD avatar Dec 21 '24 02:12 FoxxMD

Do you know if there are news?

alcir avatar Apr 07 '25 15:04 alcir

It doesn't look as anything was fixed upstream. However if anybody is willing to test it, I think I can make a small workaround for Gnome in gotify-desktop.

desbma avatar Apr 07 '25 19:04 desbma