-
Notifications
You must be signed in to change notification settings - Fork 36
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
window-list: use ~/.local/share when looking for apps / icons #225
Conversation
Somehow I'm thinking this should rely on XDG_DATA_DIRS to do the right thing. Consider Gio::DesktopAppInfo::create() here. |
I think @soreau is right, probably if we try the create() method first, we would most likely be able to cover this case and even a few others. |
fb69c9b
to
631ead1
Compare
Ah yes, that looks much better. Thanks for the suggestion! |
The icons in the window list are loaded by parsing the .desktop files for a few variations of the window's app ID in a few known locations. This doesn't look everywhere it should - for example, it doesn't look into ~/.local/share/applications or look at XDG_DATA_DIRS. Use the standard Gio::DesktopAppInfo::create instead.
631ead1
to
cf94c16
Compare
Looks like the CI tests are broken for unrelated reasons:
|
@lcolitti We can probably use |
Yup, definitely looks happier after changing that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Bonus points for removing more lines than added. 👍 |
The icons in the window list are loaded by parsing the desktop files for a few variations of the window's app ID in a few known locations.
Add /.local/share/applications to the list of locations it looks in, to ensure that apps installed in the user's home directory are considered as well.