ErikReider / SwayNotificationCenter

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

[Bug] Failed to deserialize "image-visibility" error when loading swaync #396

Closed d3-X-t3r closed 5 months ago

d3-X-t3r commented 6 months ago

Describe the bug When the swaync daemon is loaded, journalctl records the following error: Failed to deserialize "image-visibility" property of type "SwayNotificationCenterImageVisibility" for an object of type "SwayNotificationCenterConfigModel"

The full log is as follows:

systemd[21531]: Starting Swaync notification daemon...
swaync[27656]: configModel.vala:289: Loading Config: "/home/dexter/.config/swaync/config.json"
swaync[27656]: Failed to deserialize "image-visibility" property of type "SwayNotificationCenterImageVisibility" for an object of type "SwayNotificationCenterConfigModel"
swaync[27656]: functions.vala:86: Loading CSS: "/etc/xdg/swaync/style.css"
swaync[27656]: functions.vala:100: Loading CSS: "/home/dexter/.config/swaync/style.css"
swaync[27656]: factory.vala:44: Loading widget: dnd
swaync[27656]: factory.vala:44: Loading widget: buttons-grid
swaync[27656]: factory.vala:44: Loading widget: mpris
swaync[27656]: factory.vala:44: Loading widget: volume
swaync[27656]: backlightUtil.vala:41: Could not find device /sys/class/backlight/intel_backlight/brightness
swaync[27656]: factory.vala:44: Loading widget: backlight
swaync[27656]: factory.vala:44: Loading widget: title

To Reproduce Steps to reproduce the behavior:

  1. systemctl --user stop swaync
  2. notify-send -a "MyApplicationName" "This Is The Summary" "hello world"
  3. Check journalctl

Expected behavior There should be no errors.

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

Screenshots N/A

Desktop (please complete the following information):

Additional context N/A

ErikReider commented 6 months ago

Can you provide your config?

d3-X-t3r commented 6 months ago

Can you provide your config?

Apologies for the late reply, here you go: config.json

style.css.txt

ErikReider commented 5 months ago

The image-visibility property value that's in your config is misspelled xD

It's when-available, not when available