Home > System Tutorial > LINUX > How to change an application's icon in Ubuntu Gnome environment?

How to change an application's icon in Ubuntu Gnome environment?

PHPz
Release: 2023-12-28 18:29:57
forward
1461 people have browsed it

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!

Ubuntu Gnome下如何修改应用图标icon?

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.

Ubuntu Gnome下如何修改应用图标icon?

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template