Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 929  / 2 Years ago, mon, september 26, 2022, 6:21:47

I installed imagemagick using...


sudo apt install --no-install-recommends imagemagick

This also installs a graphical application which can be launched from the Apps Grid. (The app launcher is display-im6.q16.desktop).


However, is there a way to only install imagemagick command line tools without the GUI application?


More From » 21.10

 Answers
4

Installing without that tool: not directly. This is the way the package imagemagick is packaged. Installing it installs different binaries, including display-im6.q16, a graphical tool that is exposed in the menu system through the installation of a .desktop launcher, /usr/share/applications/display-im6.q16.desktop.


While you could delete the executable and the desktop file, that is not a good idea. You should stay out of directories managed by the APT packaging system. You also may not be willing to customize the installation deb yourself not to install that part.


You, however, can get rid of the entry in your menu system. The easiest way probably is to install a tool like "menulibre" or "alacarte" and disable the menu item there.


If you do not want to install an extra tool, you need to manually copy and edit the .desktop launcher file.



  1. Copy the file /usr/share/applications/display-im6.q16.desktop to your ~/.local/share/applications directory. .local is a hidden folder in your home directory. Find share in that folder and then applications. Create that folder if it does not exist.



  2. Edit the copy ~/.local/share/applications/display-im6.q16.desktop in a text editor and add the line "Hidden=true". That disables the launcher. Save the changes




It will be disabled for your user only. If you want it to be disabled for all users on the system, copy the modified .desktop file to /usr/local/share/applications. You need to be administrator for that.


[#476] Monday, September 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oleard

Total Points: 344
Total Questions: 105
Total Answers: 113

Location: Bonaire
Member since Tue, Sep 20, 2022
2 Years ago
oleard questions
Mon, Nov 1, 21, 21:27, 3 Years ago
Sat, May 7, 22, 20:47, 2 Years ago
Sun, Oct 2, 22, 01:10, 2 Years ago
Sun, Jul 24, 22, 18:15, 2 Years ago
;