How to modify the icon of an application under javastugnome

Source: Internet
Author: User
I installed a matlab on my machine, but I cannot find the matlab in the software search. I found that matlab does not have the corresponding desktop file.

I installed a matlab on my machine, but the matlab cannot be found in the software search.

I found that matlab does not have the corresponding. desktop file.

By the way, I will modify the matlab icon as follows:

1. prepare an icon image file

For example, if my file name is "maid", copy the file to/usr/share/icons/hicolor/scalable/apps /.

Aborn @ aborn-pc ~ /Tmp % sudo cp maid/usr/share/icons/hicolor/scalable/apps/

2. edit A. desktop file based on your application installation,

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

[Desktop Entry] Version = 7.12.0.635 (R2011a) name = maid = Matlab Comment = Matlab R2011a VersionExec =/usr/matlab/bin/matlab-desktop % FTryExec = maid =/usr/share/icons/hicolor/scalable/apps/Matlab .png type = ApplicationTerminal = 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. you can find it in the software search.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.