-
-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Describe the bug
SwayNC doesn't work on fedora and exits with a Gdk-Message: Error 22 (Invalid argument) dispatching to Wayland display.
error
I encountered this problem before with a package that depends on gtk4-layer-shell
, hyprshell
, and came to a conclusion that gtk4-layer-shell-1.0.3-1.fc42.x86_64
, the version on fedora, was the problem as you can see here: wmww/gtk4-layer-shell#50, and when using a >1.0.3
, the problem was solved
In fact, I opened a bug report in bugzilla, https://bugzilla.redhat.com/show_bug.cgi?id=2361269, but no response since then
it's advised not to push a copr build for fedora until this package is updated or, if possible, make a custom gtk4-layer-shell
build in the copr
To Reproduce
Steps to reproduce the behavior:
- Go to
waybar
- Click on the swaync icon in waybar, see waybar module in the end
- See error
Expected behavior
SwayNC shows panel
Please provide logs if you're experiencing notification errors / bugs
swaync.log
Desktop (please complete the following information):
- OS: Fedora 42
- Version 0.12.0
Additional context
The problem is mainly because of gtk4-layer-shell-1.0.3-1.fc42.x86_64
in fedora 42
and this is the waybar module if it's needed
"custom/swaync": {
"tooltip": true,
"tooltip-format": "Left Click: Launch Notification Center\nRight Click: Do not Disturb",
"format": "{icon} {0}",
"format-icons": {
"notification": "<U+F0F3><span foreground='red'><sup><U+F444></sup></span>",
"none": "<U+F0F3>",
"dnd-notification": "<U+F1F7><span foreground='red'><sup><U+F444></sup></span>",
"dnd-none": "<U+F1F7>",
"inhibited-notification": "<U+F0A2><span foreground='red'><sup><U+F444></sup></span>",
"inhibited-none": "<U+F0A2>",
"dnd-inhibited-notification": "<U+F1F7><span foreground='red'><sup><U+F444></sup></span>",
"dnd-inhibited-none": "<U+F1F7>"
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true,
},