孙肖宁

Ubuntu16.04 创建Eclipse和Sublime Text3桌面快捷方式
eclipse1.创建原理UBuntu的菜单图标保存在/usr/share/applications目录下,所以先...
扫描右侧二维码阅读全文
03
2017/11

Ubuntu16.04 创建Eclipse和Sublime Text3桌面快捷方式

eclipse

1.创建原理
UBuntu的菜单图标保存在/usr/share/applications目录下,所以先在该目录下建一个eclipse.desktop文件

sudo gedit /usr/share/applications/eclipse.desktop

2.在文件中写入以下内容

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse   #图标名字,自己可以任意定义
Comment=Eclipse IDE
Exec=/home/sunxiaoning/software/eclipse/eclipse      #Eclipse文件夹下eclipse的路径 
Icon=/home/sunxiaoning/software/eclipse/icon.xpm     #Eclipse文件夹下图标icon.xpm的路径
Terminal=false     #软件打开时是否启动终端
StartupNotify=true
Type=Application
Categories=Application;Development;

进入/usr/share/applications 将相应图标右键复制到桌面即可,也可以拖拉到状态栏,选择固定在任务栏

Sublime Text3

1.创建文件

sudo gedit /usr/share/applications/Sublime_Text_3.desktop

2.在文件中写入以下内容

[Desktop Entry]
Encoding=UTF-8
Name=Sublime Text
Comment=The Smarter Way to Code
Exec=/home/sunxiaoning/software/sublime_text_3/sublime_text
Icon=/home/sunxiaoning/software/sublime_text_3/Icon/32x32/sublime-text.png
Terminal=false   
StartupNotify=true
Type=Application
Categories=Application;Development;

进入/usr/share/applications 将相应图标右键复制到桌面即可,也可以拖拉到状态栏,选择固定在任务栏

Last modification:November 5th, 2017 at 11:45 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment