nwg-piotr/azote

`KeyError: 'generic-name'` when trying to set wallpaper from an image

hochata opened this issue · 5 comments

Describe the bug
After trying to set a wallpaper from an image, nothing visibly happens. The stacktrace shows the following

Running on Wayland, but not sway
Available screen height: 708 px; measurement delay: 300 ms
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/azote/main.py", line 461, in on_apply_button
    display_name = item["generic-name"]
KeyError: 'generic-name'

To Reproduce
Steps to reproduce the behavior:

  1. Open Azote
  2. Select an image
  3. Click on the button to try to set the selected image as a wallpaper

Expected behavior
To have the wallpaper properly set.

Desktop:

  • Linux distribution: Artix Linux
  • WM: riverwm

Azote version:

  • v1.9.3

Additional context
I've mostly used Sway and there Azote works perfectly. I was just trying River and noticed this issue.

It seems using colors directly works just fine.

Could you uncheck the "Use generic display names" box and tell me if it helps?

image

Closed unintentionally, sorry. But this should fix the issue. Tested on Wayfire, as my river died.

Unchecking the Use generic display option does solve the issue.

Thanks for the very fast response!

It should work now with "Use generic display", too. Released as Azote 1.9.4.

Yep, with the new release it works without untoggling anything. Thanks!