Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to hide deskop entries system-wide per site?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 271

PostPosted: Wed Jul 03, 2024 5:38 pm    Post subject: How to hide deskop entries system-wide per site? Reply with quote

I want to hide selected desktop entries from KDE/Plasma for all users on a system-wide level without interfering with the package manager. I thought that *.desktop entries in /usr/share/applications/ take precedence over *.desktop entries in /usr/share/applications/ if the desktop entry has the same ID.

For example, I copied vlc.desktop from /usr/share/applications/ into /usr/share/applications/ and added the key "Hidden". However, VLC still appears in the KDE start menu.
Code:
# egrep Hidden /usr/share/applications/vlc.desktop /usr/local/share/applications/vlc.desktop
/usr/local/share/applications/vlc.desktop:Hidden=true
What is my mistake?

Last edited by nagmat84 on Wed Jul 03, 2024 6:39 pm; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1957
Location: 127.0.0.1

PostPosted: Wed Jul 03, 2024 6:04 pm    Post subject: Reply with quote

Hi,

Here it works fine. Xfce. I guess it depends on your desktop.
I even thought I should have to reload the xfce-panel with the menu, but no : the menu is updating itself.
Also, you should make sure that you don't have the same desktop file in ~/.local/share/applications/.
Back to top
View user's profile Send private message
nagmat84
Apprentice
Apprentice


Joined: 27 Mar 2007
Posts: 271

PostPosted: Wed Jul 03, 2024 6:40 pm    Post subject: Reply with quote

netfab wrote:
Also, you should make sure that you don't have the same desktop file in ~/.local/share/applications/.
I checked this. This is not the culprit.

netfab wrote:
Here it works fine. Xfce. I guess it depends on your desktop.
Good to know. However, I am looking for a solution that works with KDE/Plasma.
Back to top
View user's profile Send private message
Ralphred
l33t
l33t


Joined: 31 Dec 2013
Posts: 654

PostPosted: Thu Jul 04, 2024 12:45 pm    Post subject: Re: How to hide deskop entries system-wide per site? Reply with quote

nagmat84 wrote:
What is my mistake?

You want the NoDisplay option, not Hidden. See https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#recognized-keys

If that doesn't work it's time to start messing with the permissions of the .desktop files.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum