服务器运维Linux
2025-04-03 14:10阅读:74评论:0
deepin(Linux)系统在启动器上制作启动图标
deepin在启动器上制作启动图标放在/usr/share/applications下 cd /usr/share/applications cgedit sublimetext3.desktop 输入以下内容 其中Name是快捷方式名;comment:注释;Exec(这个很关键):启动脚本,要将完
deepin在启动器上制作启动图标放在/usr/share/applications下
- \# cd /usr/share/applications
- \# cgedit sublime__PROTECTED_0__3.desktop
- 输入以下内容
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Desktop Entry]Version=1.0Name=Sublime Text 3Comment=Sophisticated text editor for code, markup and proseKeywords=Text;Editor;Keywords[zh_CN]=文本;编辑器;Text;Editor;Keywords[zh_TW]=文字;編輯器;Text;Editor;Exec=/media/czw/F/linux/soft/sublime_text_3/sublime_textIcon=/media/czw/F/linux/soft/sublime_text_3/Icon/128x128/sublime-text.pngTerminal=falseType=ApplicationCategories=TextEditor;Development;MimeType=text/plain;StartupNotify=trueActions=Window;Document; - 其中Name是快捷方式名;comment:注释;Exec(这个很关键):启动脚本,要将完整路径写上去。Icon:图标的文件名及路径。Terminal:是否以终端启动。
参考:https://blog.csdn.net/zhangjingao/article/details/76546363
- 右键快捷方式
1
2
3
4
5
Categories=TextEditor;Development; # 软件类型设置MimeType=text/plain;StartupNotify=trueActions=Window;Document; # 软件类型设置 - 可以从解压路径下的sublime_text.desktop中拷贝
###### 关键 -如果只是配置上面那些,比如有一个文本有内容,选择sublime打开,是没有内容数据的,需要加上以下配置
1
2
3
4
Keywords=Text;Editor;Keywords[zh_CN]=文本;编辑器;Text;Editor;Keywords[zh_TW]=文字;編輯器;Text;Editor; - 在sublime__PROTECTED_1____PROTECTED_2__0__
1
2
3
4
5
6
7
8
9
10
11
[Desktop Entry]Encoding=UTF-8Name=Navicat Premium12Comment=Navicat PremiumExec=/home/czw/mysoft/navicat120_premium_cs_x64/start_navicatIcon=navicatTerminal=falseStartupNotify=trueType=ApplicationCategories=Application;Development;