Home >System Tutorial >LINUX >How to change an application's icon in Ubuntu Gnome environment?
In the Gnome graphical desktop environment of the Ubuntu system, some users encountered such a problem: the matlab program was obviously installed in the system, but matlab was not found in the software search. After checking, it was found that matlab did not correspond. desktop file. What to do? How to modify the application icon under Ubuntu Gnome? The editor below will show you how to modify the application icon under Ubuntu Gnome! Let’s go and see it together!
Proceed as follows:
1. Prepare an icon image file
For example, the file name here is 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 situation,
Here I create a new matlab.desktop file with the following content:
[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/
4. Then you can find it in the software search.
The above is the detailed content of How to change an application's icon in Ubuntu Gnome environment?. For more information, please follow other related articles on the PHP Chinese website!