Previously, we showed you how to easily change the application icons in Gnome 3. However, some users still prefer to use their terminal for this. It’s doable, but, as expected, the process is a little more complicated than a few mouse clicks. Let’s see how to change the icon of your application directly from your terminal.
Find your application’s desktop settings
Each application that appears on our desktop has a .desktop configuration file. This comes in the form of a text file, filled with values that define how it should act, operate, and look on the desktop. Among these, you can find a value for its icon.
Launch your preferred terminal and access the folder where you will find these settings files for all your applications, with:
Note that, depending on your distribution, this path may be different.
This folder can contain hundreds of entries. To find your way among them and locate the application you want to modify, use
grep to filter the list. We wanted to verify the existence of a settings file for Firefox, so we used:
Open the settings file in your favorite text editor – we used nano. The “/ usr / share / applications” folder being provided with restricted access, you will have to run your editor with
sudo to edit any file. Our command was:
With the file open in your editor, it’s time to change the application icon. If you don’t have an alternative icon yet, it’s time to find one. Exit your editor window and spend a moment on your favorite browser.
Look for a free icon in PNG or JPG format. We used the query “firefox icon png” and went to get the first result that appeared.
Save the file locally in a relatively simple path. Make sure you remember the path and file name, as you will need it soon. Our full path and file name is “/home/USERNAME/Pictures/icons/black_firefox.png”.
Return to your editor and search for the channel
Icon=CURRENT_ICON to point to the file you just downloaded. In our case, the original entry was read
The updated version was:
Save and update
Save the changes (Ctrl + O), quit your editor (Ctrl + X), and wait. The next time your desktop is updated, your app icon will do the same.
If it takes too long, you still have the option of logging out and then logging back in to force a full refresh.
You can repeat the process for the rest of your applications to give your desktop a truly unique and personal look.
Now that you’ve changed the application icon from the terminal, it’s also possible to manage your tasks or even search the web from the terminal. And if your terminal is not working, try these fixes.
Is this article useful?