ubuntu 创建桌面快捷方式

来源:互联网 发布:ruby精粹专家编程 pdf 编辑:程序博客网 时间:2024/04/30 12:49
以matlab为例,在桌面上和桌面左上角的Applications中创建快捷方式
 
在/usr/share/applications 中创建Matlab.desktop 文档,并输入以下内容
 [Desktop Entry]
 Name=Matlab
 GenericName=Matlab R2013a
 Comment=Matlab R2013a: The Language of the Techinical Computing
 Exec=/sda/MySoftware/matLab/bin/matlab      //此处是应用程序的位置
 Icon=/sda/MySoftware/matLab/icons/Matlab.png
 StartupNotify=true
 Terminal=false
 Type=Application
 Categories=Development; // 添加该命令后,快捷方式会出现在 Applications/Programming/中
 

完成后,sudo chmod a+x Matlab.desktop   //


在12.04中,此时matlab便会出现在左上角的Dash Home中,然后直接拖动到桌面即可。右键,属性,直接点击图标,便可以更改图标。

原创粉丝点击