-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
KeyFile: Make show and active Follow the Autostart Spec #184
Conversation
the autostart spec defines the Hidden key as the way to disable a file from autostarting. Update the active property to use it if X-GNOME-Autostart-enabled key is not defined.
update the show property to use the XDG_CURRENT_DESKTOP environment instead of DESKTOP_SESSION, if none of the current desktop have a match, we default to show if the OnlyShowIn key is not present. this is the proper behaviour defined in the desktop entry spec, and the autostart doesn't differ here.
I would recommend using DesktopAppInfo as the |
That is what i done first, but it ended up causing segfaults. |
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.
Code looks good to me. Not sure if there is an ideal way to test but it doesn't appear to break anything that I can see. In fact on my main machine I see Music as an option for File Browser but in my test that seems to be gone which feels more appropriate?
Thanks for the code review, you can test the active part with 3 files in the ~/.config/autostart directory:
to test the show part you need to have others 3 files, and modify the XDG_CURRENT_DESKTOP environment value:
Well, this doesn't change anything outside of the startup page so i doubt this happened because of the changes here. Maybe you have a old version of music in you test machine, i see that it include |
this make the plug work correctly with files created by the background portal.