How to switch off a app icon from list - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139) +---- Thread: How to switch off a app icon from list (/showthread.php?tid=13883) |
How to switch off a app icon from list - pinephone - 05-11-2021 Hello, I installed some apps and during this way, other apps will also visible as icon in the list. But I don't want it. (For example "Midnight Commander", "LRF viewer", "ImageMagick" etc) How can I switch off this icon, so that are not visible in my start bar? RE: How to switch off a app icon from list - Merc - 05-11-2021 I can't say whether it's the "proper" way of doing it, but what I have been doing is navigating to /usr/share/applications finding the name of the app and renaming the .desktop file to .desktop.bak (or any name not ending in .desktop), this will make the icon disappear. If you want the icon to re-appear simply return the name to what it was. Code: cd /usr/share/applications RE: How to switch off a app icon from list - pajux - 05-11-2021 A better way, which should be persistent across application updates, is to copy the application's .desktop file from /usr/share/applications to $HOME/.local/share/applications/ and add the line: Quote:Hidden=true Reference: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-1.1.html Where "NoDisplay=true" would ,as per my understanding, work if it was set in the /usr/share/applications/ file but not in the copy of the file in the user's local dir, so Hidden=true is the one required setting that would override the presence of the global .desktop file. Quote: Hidden should have been called Deleted. It means the user deleted (at his level) something that was present (at an upper level, e.g. in the system dirs). It's strictly equivalent to the .desktop file not existing at all, as far as that user is concerned. This can also be used to "uninstall" existing files (e.g. due to a renaming) - by letting make install install a file with Hidden=true in it. RE: How to switch off a app icon from list - Merc - 05-12-2021 (05-11-2021, 11:58 PM)pajux Wrote: A better way, which should be persistent across application updates, is to copy the application's .desktop file from /usr/share/applications to $HOME/.local/share/applications/Oh neat, that did work. Always happy to learn new things like this. RE: How to switch off a app icon from list - pinephone - 05-12-2021 Very nice, thank you so much! I tried and it works perfect。 RE: How to switch off a app icon from list - dukla2000 - 05-12-2021 (05-11-2021, 11:58 PM)pajux Wrote: A better way, which should be persistent across application updates, is to copy the application's .desktop file from /usr/share/applications to $HOME/.local/share/applications/ I have been doing lots of NoDisplay=true in /usr/share/applications but as you note updates often break my fix - many thanks for the better solution! RE: How to switch off a app icon from list - pajux - 05-14-2021 Glad it helped many out! |