How to modify the app icon icon under Ubuntu Gnome

  
                

In the Gnome graphical desktop environment of Ubuntu system, some users have encountered such a problem: obviously the matlab program is installed in the system, but the matlab can not be found in the software search. After checking, it is found that matlab has no corresponding. Desktop file. What should I do? Under Ubuntu Gnome, how do I change the icon of the app icon?

following steps:

1. Prepare a file icon image

The file I herein called matlab.png, copy the file to /usr /Share/icons/hicolor/scalable/apps/下下:

aborn@aborn-pc ~/tmp % sudo cp matlab.png /usr/share/icons/hicolor/scalable/apps/

2. Edit a .desktop file according to your application installation.

Here I create a new matlab.desktop file with the following contents:

[Desktop Entry]

Version= 7.12.0.635 (R2011a)

Name=Matlab

GenericName=Matlab

Comment=Matlab R2011a Version

Exec=/usr/matlab/bin/Matlab -desktop %F

TryExec=matlab

Icon=/usr/share/icons/hicolor/scalable/apps/matlab.png

Type=Application

Terminal=false

Exec is the execution command, and Icon is the corresponding icon image file path.

3. Copy the .desktop file to /usr/share/applications/

aborn@aborn-pc ~/tmp % sudo cp matlab.desktop /usr/share/applications/< Br>

4. Then you can find it in the software search.

These are the methods to modify the application icon icon next Ubuntu Gnome, encountered the same problem the user can refer to the methods described above to modify the icon.

Copyright © Windows knowledge All Rights Reserved