建立matlab的启动图标

1、进入目录

 cd  /usr/share/applications

2、建立并编辑图标文件

sudo touch matlab.desktop

sudo vim matlab.desktop,将以下内容输入并保存:

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=matlab
Type=Application
Exec=/usr/local/Polyspace/R2021a/bin/matlab -desktop
Icon=/usr/local/Polyspace/R2021a/bin/glnxa64/cef_resources/matlab_icon.png
Terminal=False
Comment=Scientific computing environment

2023a的内容为:

#!/usr/bin/env xdg-open
[Desktop Entry]
Name=matlab
Type=Application
Exec=/usr/local/MATLAB/R2023a/bin/matlab -desktop
Icon=/usr/local/MATLAB/R2023a/bin/glnxa64/cef_resources/matlab_icon.png
Terminal=False
Comment=Scientific computing environment

 

3、建立快捷方式

ln -s  /usr/share/applications/matlab.desktop /home/nication/.桌面/

posted @ 2022-09-28 11:31  叕叒双又  阅读(95)  评论(0编辑  收藏  举报