How do I assign an icon for programs which doesn't have any specific icons ? (ie. vncviewer, rdesktop, etc). Today it appears as a gray icon with question mark on the middle as a default icon in unity launcher.
How do I assign an icon for programs which doesn't have any specific icons ? (ie. vncviewer, rdesktop, etc). Today it appears as a gray icon with question mark on the middle as a default icon in unity launcher.
Sure.
Select a .png file and copy/paste it to a location where you are not going to move it in the future.
Open Files and browse to
/usr/share/applications/
. Here you are going to find your applications and their different icons.Right-click the application icon that you want to change and from the pop-up context menu select Copy.
Run
apt policy gksu
to check if gksu is installed. Install gksu if it is not already installed withsudo apt-get install gksu
. Open the terminal and typegksu gedit
and after it on the same line paste the location of the icon that you copied in step 3.In Ubuntu 18.04 and later gksu has been discontinued, so use this command instead:
Select the new .png file from step 1, right-click it, and select Copy from the pop-up context menu.
Paste the location of the .png file that you copied in step 5 in the line in the open gedit text editor that starts with
Icon=
.Replace:
with:
Save the change you made to the open file in gedit and close gedit.
I found a good answer to this question here: How can I change which icon an applet uses?
For me I wanted to give Rubbyripper an icon, and this worked like a charm. I did edit the system file though. Didn't try the .local method.