Ranger icon

On my system the icon for Ranger is the terminal icon


The .desktop file for Ranger

[Desktop Entry]
Type=Application
Name=ranger
Comment=Launches the ranger file manager
Icon=utilities-terminal
Terminal=true
Exec=ranger
Categories=ConsoleOnly;System;FileTools;FileManager
MimeType=inode/directory;
Keywords=File;Manager;Browser;Explorer;Launcher;Vi;Vim;Python

I do not see a location for the icon. Just utilities-terminal. How does it know what icon to use? My ultimate goal is to change the icon so I dont have 2 terminal icons in my panel.

utilities-terminal is a standard icon name. In theory every icon set should have something that coincides to that name.

You can copy that .desktop to ~/.local/share/applications/. and then edit the Icon= line. You can use the absolute path to an image file instead of an icon name.

1 Like

Alternatively, you can navigate to the icon set folder used by your system:
~/.local/share/icons/

Locate the terminal icon you’re currently using, then create a copy or a symlink of that file. Rename it to utilities-terminal.

(I’m not entirely sure if the file extension is required, but I always include the extension when copying or symlinking the file, just to be safe.)

1 Like

Icons for the system are stored in
/usr/share/icons Root privileges are required to modify and an update can cause a remodify of the file(s)

2 Likes

Ah, yes — you’re right. I probably should’ve asked for more details first. :slightly_smiling_face:

That said, if the OP is using KDE with a custom icon set, the suggestion I shared might still be helpful. I’m just going off the screenshot, and the icon looks a bit different from the standard sets, so I figured it was worth mentioning.

1 Like

The OP is asking to have a different icon for the terminal and ranger so I don’t think modifying the icon will help in this case.

1 Like

Oops, my bad — I just realized that! :sweat_smile:

1 Like