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

feat: Allow user desktop overrides to hide applications from system level desktop files #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Eliasin
Copy link

@Eliasin Eliasin commented Aug 27, 2023

Hi! I noticed that in the application plugin there isn't a way to ignore applications whose desktop entries live in system directories gracefully as changes to these entries get overwritten when packages update.

Normally a user level desktop entry would be the solution but with the way they are currently handled by anyrun, using NoDisplay in the user level desktop entry simply treats the user entry as if it did not exist without hiding the system level entry. The Hidden attribute which more closely maps to this usecase is also not supported right now in any kind of entry.

This PR adds support for Hidden in general and allows users to hide applications defined by system .desktop files by adding a user level .desktop file with either NoDisplay or Hidden set to true.

This does technically change existing behavior but I think the amount of adversely impacted users would be minimal as anyone who overrides the system level entries with an entry that hides an application probably would prefer this behavior. I considered adding a new configuration flag for allowing this new behavior but supporting this would complicate some of the scrubber code.

Let me know what you think!

Hides applications which have both a system level desktop file and a
user level desktop file where the user level desktop file sets either
the `NoDisplay` or `Hidden` entries to `true`. This allows users to
remove application entries without editing system level desktop files.

Also add support for the `Hidden` desktop entry alongside `NoDisplay`.
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

Successfully merging this pull request may close these issues.

1 participant