Package: xfce4-notifyd
Version: 0.9.6-1
Severity: normal
Tags: patch

xfce-notifyd crashes in a Wayland session, example log:

Jan 09 23:44:48 haruka systemd[15098]: Starting xfce4-notifyd.service -
XFCE notifications service...
Jan 09 23:44:48 haruka systemd[15098]: Started xfce4-notifyd.service -
XFCE notifications service.
Jan 09 23:44:48 haruka xfce4-notifyd[23287]: **
Jan 09 23:44:48 haruka xfce4-notifyd[23287]:
xfce4-notifyd:ERROR:xfce-notify-window.c:1863:xfce_notify_window_set_geometry:
code should not be reached
Jan 09 23:44:48 haruka xfce4-notifyd[23287]: Bail out!
xfce4-notifyd:ERROR:xfce-notify-window.c:1863:xfce_notify_window_set_geometry:
code should not be reached
Jan 09 23:44:48 haruka systemd[15098]: xfce4-notifyd.service: Main
process exited, code=killed, status=6/ABRT
Jan 09 23:44:48 haruka systemd[15098]: xfce4-notifyd.service: Failed
with result 'signal'.

The reason is that Wayland support is not enabled during the build, as
the log [1] shows:

checking if the Wayland windowing system is enabled... dependencies missing: 
gtk-layer-shell-0 >= 0.7.0

When running under Wayland without Wayland support a
g_assert_not_reached is hit in xfce_notify_window_set_geometry,
resulting in the crash.

Adding libgtk-layer-shell-dev to Build-Depends solves the issue, trivial
patch attached.

[1]
https://buildd.debian.org/status/fetch.php?pkg=xfce4-notifyd&arch=amd64&ver=0.9.6-1&stamp=1723704240&raw=0

-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1,
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.8-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xfce4-notifyd depends on:
ii  libatk1.0-0t64       2.54.0-1
ii  libc6                2.40-5
ii  libcairo2            1.18.2-2
ii  libgdk-pixbuf-2.0-0  2.42.12+dfsg-1+b1
ii  libglib2.0-0t64      2.82.4-1
ii  libgtk-3-0t64        3.24.43-4
ii  libgtk-layer-shell0  0.8.2-1+b1
ii  libnotify4           0.8.3-1+b2
ii  libsqlite3-0         3.46.1-1
ii  libx11-6             2:1.8.10-2
ii  libxfce4panel-2.0-4  4.20.0-1
ii  libxfce4ui-2-0       4.20.0-1
ii  libxfce4util7        4.20.0-1
ii  libxfconf-0-3        4.20.0-1

Versions of packages xfce4-notifyd recommends:
ii  libnotify-bin  0.8.3-1+b2

xfce4-notifyd suggests no packages.

-- debconf-show failed
From 6db8c538e98a59cbfb3568bfe91787b41e934cd9 Mon Sep 17 00:00:00 2001
From: Fiona Klute <fiona.kl...@gmx.de>
Date: Fri, 10 Jan 2025 00:06:56 +0100
Subject: [PATCH] Enable Wayland support

Enabled automatically if dependencies are met.
---
 debian/control | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/control b/debian/control
index c88bb4a..9634bc8 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends: debhelper-compat (= 13),
                exo-utils,
                gettext,
                libgtk-3-dev,
+               libgtk-layer-shell-dev,
                libnotify-dev,
                libsqlite3-dev,
                libxfce4panel-2.0-dev,
-- 
2.47.1

Reply via email to