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.