Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons are not found #164

Open
strk opened this issue Mar 15, 2023 · 4 comments
Open

Icons are not found #164

strk opened this issue Mar 15, 2023 · 4 comments

Comments

@strk
Copy link
Contributor

strk commented Mar 15, 2023

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
Copy link
Contributor Author

strk commented Mar 15, 2023

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
Copy link
Owner

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
Copy link
Contributor Author

strk commented Mar 16, 2023

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants