服务器运维
Linux
2025-04-03 14:10
阅读:98
评论: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_text_3.desktop
- 输入以下内容
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[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
Categories=TextEditor;Development; # 软件类型设置MimeType=text/plain;StartupNotify=trueActions=Window;Document; # 软件类型设置- 可以从解压路径下的sublime_text.desktop中拷贝
关键
-如果只是配置上面那些,比如有一个文本有内容,选择sublime打开,是没有内容数据的,需要加上以下配置
1
2
3
Keywords=Text;Editor;Keywords[zh_CN]=文本;编辑器;Text;Editor;Keywords[zh_TW]=文字;編輯器;Text;Editor;- 在sublime_text.desktop中是没有的,这是我从应用中心安装其他版本拷贝过来的
navicat制作脚本
1
2
3
4
5
6
7
8
9
10
[Desktop Entry]Encoding=UTF-8Name=Navicat Premium12Comment=Navicat PremiumExec=/home/czw/mysoft/navicat120_premium_cs_x64/start_navicatIcon=navicatTerminal=falseStartupNotify=trueType=ApplicationCategories=Application;Development;