You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the PiOS Bookworm wayland system tries to set an appropriate app icon based on the WM_CLASS if the app is using Xwayland, or the app_id if running on Wayland.
In case you are not sure, FF-Converter does use native Wayland on systems that support it.
Xwayland result:
Here's how to force any program to make an x11 window and be displayed with xwayland:
The output from wmctrl -lx includes this line: 0x01600006 0 ffconverter.FF Multi Converter raspberrypi FF-Converter
So the WM_CLASS is set to ffconverter.FF Multi Converter.
And as a result of a useful value of WM_CLASS, the Wayfire compositor locates a good icon for the program, as can be seen here on this screenshot of my taskbar.
Wayland result:
Now just run ffconverter normally without those other variables set, and notice that the taskbar icon is left blank:
I am not aware of a command equivalent to wmctrl to check what the wayland app_id is being set to, but here's a way to do it:
Another app had a similar issue. hongquan/CoBang#87
As that app is also written in python, if you are not sure what to change, maybe the recent commits on that repo would give you a good direction to start.
the PiOS Bookworm wayland system tries to set an appropriate app icon based on the WM_CLASS if the app is using Xwayland, or the app_id if running on Wayland.
In case you are not sure, FF-Converter does use native Wayland on systems that support it.
Xwayland result:
Here's how to force any program to make an x11 window and be displayed with xwayland:
Then in another terminal, to check its WM_CLASS:
The output from
wmctrl -lx
includes this line:0x01600006 0 ffconverter.FF Multi Converter raspberrypi FF-Converter
So the WM_CLASS is set to
ffconverter.FF Multi Converter
.And as a result of a useful value of WM_CLASS, the Wayfire compositor locates a good icon for the program, as can be seen here on this screenshot of my taskbar.
Wayland result:
Now just run ffconverter normally without those other variables set, and notice that the taskbar icon is left blank:
I am not aware of a command equivalent to
wmctrl
to check what the wayland app_id is being set to, but here's a way to do it:And this was the output:
[3042681.165] -> xdg_toplevel@26.set_app_id("com/l-koehler/FF-converter.https://github.python3")
I would imagine that the app_id is not currently being manually set by you, but instead, a default value is being chosen by python3.
TL;DR
This is a request to see if it is possible to manually set the app_id to
ffconverter.FF Multi Converter
to make the app icon work on wayland.The text was updated successfully, but these errors were encountered: