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 (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC
  Reply
#7
Glad it helped many out!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Quick question abtut sources.list jojuma 1 761 06-17-2024, 04:46 AM
Last Post: zetabeta
  icon keyboard chris_02 3 1,445 02-09-2024, 08:53 AM
Last Post: 3x5co
  The settings icon disappeared kubussz 34 19,040 11-15-2022, 10:56 AM
Last Post: grump_fiddle_reinstall
  Exclamation point in cellular icon after update Zebulon Walton 8 5,981 06-22-2022, 05:57 PM
Last Post: albafrati
  Trying the camera switch on my PinePhone gilwood 5 4,168 04-02-2022, 12:54 PM
Last Post: jhasler
  lost settings icon from screen kubussz 3 3,196 02-17-2022, 09:26 AM
Last Post: beretta
  Disappeared one icon kubussz 0 1,059 02-03-2022, 11:41 AM
Last Post: kubussz
  How to clear recent call list? Zebulon Walton 2 3,067 03-25-2021, 07:41 PM
Last Post: Zebulon Walton
  Desktop Entry icon not appearing: how to diagnose? Saliency 6 6,093 03-15-2021, 05:49 AM
Last Post: kqlnut
  Is there a list of software/Hardware errors Franze_m 6 6,079 02-24-2021, 12:07 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 2 Guest(s)