-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Make systray applet also searching in XDG_DATA_HOME & XDG_DATA_DIRS when looking for the .desktop file #156
Conversation
…king for the .desktop file
@trigg Can you give this a look? I used the same logic currently used to determine where the state file is, except I added some Hopefully the syntax and indentation is okay 😅 By the way, I know you asked me to assign you to the linked issue, but I wanted to give this a try myself to get familiar with the systray applet codebase. I hope you don't mind 😶 |
Not at all! I apologise, my work has kept me busy lately. My concern with this code is that it makes several references to I think we need to start off setting it to
which will more cleanly catch both option (file wasn't already set or file is not valid for our use) |
Simulating a system where
|
I've made a PR to your PR 😁 |
Oh don't worry, no problem! Take all the time you need ;)
Oh yeah you're right, thanks!
Can you make "suggestions" I can commit to this one directly instead (so we keep everything in the same PR)? |
The PR I made is pointing at this branch, not master. But by all means just recreate what I did in the changes here |
Oh sorry, I missed that! Thanks :) |
I'll adapt the documentation in that PR so the fact that the systray is now looking for those different paths is documented and then we should be good to merge it :) I'll probably cut a |
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.
✔️
This PR makes the systray applet searching for the .desktop file in the following path (in that specific order):
That would allow users to be able to provide a customized
.desktop
file for the systray applet to execute if needed (e.g. force Arch-Update to launch in a specific terminal emulator that is not supported by gio/glib2).Fixes #151