How to switch off a app icon from list
#1
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?


Attached Files Thumbnail(s)
   
  Reply
#2
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
sudo mv thunar-settings.desktop{,.bak}
  Reply
#3
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/d...c-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.
  Reply
#4
(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/

and add the line:

Quote:Hidden=true
Oh neat, that did work. Always happy to learn new things like this. Smile
  Reply
#5
Very nice, thank you so much!

I tried and it works perfect。
  Reply
#6
(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/

and add the line:

Quote:Hidden=true

...

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!
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (5.14 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone BraveHeart now v1.2b 3/32Gb daily driver, dual boot via p-boot with Mobian/f2fs/Phosh on eMMC, Arch/ext4/Phosh on SDcard
  • PinePhone v1.2a 2G/16Gb that needs USB board replaced
  Reply
#7
Glad it helped many out!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to clear recent call list? Zebulon Walton 2 728 03-25-2021, 07:41 PM
Last Post: Zebulon Walton
  Desktop Entry icon not appearing: how to diagnose? Saliency 6 1,255 03-15-2021, 05:49 AM
Last Post: kqlnut
  Is there a list of software/Hardware errors Franze_m 6 1,158 02-24-2021, 12:07 PM
Last Post: tophneal
  lost settings icon from screen bobblestiltskin 2 1,031 11-19-2020, 01:07 PM
Last Post: bobblestiltskin

Forum Jump:


Users browsing this thread: 1 Guest(s)