—— 阿尔伯特·爱因斯坦

程序员の奇妙冒险

服务器运维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.0
Name=Sublime Text 3
Comment=Sophisticated text editor for code, markup and prose
Keywords=Text;Editor;
Keywords[zh_CN]=;;Text;Editor;
Keywords[zh_TW]=;;Text;Editor;
Exec=/media/czw/F/linux/soft/sublime_text_3/sublime_text
Icon=/media/czw/F/linux/soft/sublime_text_3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Categories=TextEditor;Development;
MimeType=text/plain;
StartupNotify=true
Actions=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=true
Actions=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-8
Name=Navicat Premium12
Comment=Navicat Premium
Exec=/home/czw/mysoft/navicat120_premium_cs_x64/start_navicat
Icon=navicat
Terminal=false
StartupNotify=true
Type=Application
Categories=Application;Development;
 
评论(0)
暂无评论来抢沙发吧~