Houston4444 / RaySession

Session manager for linux musical programs
GNU General Public License v2.0
168 stars 20 forks source link

Icons are not found #164

Open strk opened 1 year ago

strk commented 1 year ago

Some icons are not found by RaySession, for example the one for multimedia-volume-control despite my system being full of SVG files, as shown by locate multimedia-volume-control here: https://termbin.com/6ugr

image

This is the Ubuntu-22.04 LTS system running i3 DE with RaySession 0.13.1 and Qt version 5.15.3

How are icons searched for ?

strk commented 1 year ago

Expected behaviour would be what can be seen in a screenshot sent me by someone using i3 on a Debian (not sure which version) where things seem to work: https://libera.ems.host/_matrix/media/v3/download/matrix.org/QwDAewtUQxITCcFfqRZlmNON/2023-03-15_11.34.37.822.png

Houston4444 commented 1 year ago

icons are found by Qt, with the QIcon.fromTheme() method. It's maybe a problem with XDG_DATA_DIRS, normally if this environment variable is not set, it should be ~/.local/share/:/usr/local/share/:/usr/share. This is more a problem with i3, or with Qt.

strk commented 1 year ago

Thanks ! the XDG_DATA_DIRS env is set to /usr/local/share:/usr/share:/var/lib/snapd/desktop so the /usr/share/icons directories are under that. What theme name is passed to the QIcon.fromTheme() by Ray ?

Houston4444 commented 1 year ago

No theme name is passed to the QIcon.fromTheme() method, the argument 'name' is for the icon name.