原理很简单,,先打开下面这个路径
[php]
cd /usr/share/applications/
[/php]
创建空的快捷方式
[php]
sudo touch /usr/share/applications/matlab.desktop
[/php]
编辑快捷方式
[php]
sudo gedit /usr/share/applications/matlab.desktop
[/php]
在文件中填入以下内容并修改
[php]
[Desktop Entry]
Name=Python (v2.7)
Comment=Python Interpreter (v2.7)
Exec=/usr/bin/matlab
Icon=/usr/share/pixmaps/matlab.xpm
Terminal=true
Type=Application
Categories=Development;
StartupNotify=true
NoDisplay=true
[/php]
解释
【1】Name(名称)
【2】Comment(评论)
【3】Exec(路径,有些需要加 sh,,就是打开方式)
【4】Icon(图标)
【5】Terminal(是否在终端)
【6】Type(类型,默认是Application)
【7】Categories(类型,Development)
【8】StartupNotify(启动通知)
【9】NoDisplay(不通知)
创建完了,,就简单了,,copy到桌面即可使用。。
文章评论