ErikReider / SwayNotificationCenter

A simple GTK based notification daemon for SwayWM
GNU General Public License v3.0
1.4k stars 63 forks source link

[Bug] Notifications fail to show with notify-send #383

Open jbeich opened 9 months ago

jbeich commented 9 months ago

Describe the bug Regressed by #304 (6dafd54929ad, functions.vala). Affects notify-send (from libnotify) but not noti. Creating notifications via notify-send doesn't work unless swaync is launched with -c /null .

To Reproduce

  1. Install swaync into a pristine container / jail
  2. Run swaync &
  3. Run notify-send "summary" "body"

Expected behavior

  1. Do something... shown on terminal
  2. A window pops up with titled summary with text body

Please provide logs if you're experiencing notification errors / bugs

$ G_MESSAGES_DEBUG=all HOME=$(mktemp -dt swaync-test) swaync
[...]
** (swaync:1234): DEBUG: notiDaemon.vala:171: Notification:
category:                (null)
image_data:              false
expire_timeout:          -1
replaces_id:             0
desktop_entry:           (null)
body:                   body
app_icon:
action_icons:            false
time:                   1707594987
hints:
        sender-pid: int64 86534
        urgency: byte 0x01
applied_id:              1
image_path:              (null)
inline-reply:            (null)
app_name:                notify-send
summary:                 summary
icon_data:               false
resident:                false
default_action:          (null)
actions:
urgency:                 Normal

Desktop

$ pkg info -d swaync
swaync-0.10.0:
        pango-1.50.14
        libhandy-1.6.2_2
        gtk3-3.24.41
        gtk-layer-shell-0.8.2
        granite-6.2.0_2
        gdk-pixbuf2-2.42.10_2
        cairo-1.17.4_2,3
        libgee-0.20.6_1
        json-glib-1.8.0
        glib-2.78.4,2
        gettext-runtime-0.22.3_1
        pulseaudio-16.1_2
        at-spi2-core-2.50.1
ErikReider commented 9 months ago

So you're saying that the changes to the execute_command in that PR is what's causing notifications not to show? Or am I misunderstanding the issue?

Could you provide a video?

I'm not experiencing this at all on my two machines so it's pretty difficult to debug without more information

MrPenguin07 commented 9 months ago

Unable to reproduce here on master (simply launch via sway config exec swaync)