deepin(Linux)系统在启动器上制作启动图标

deepin在启动器上制作启动图标放在/usr/share/applications下

  • # cd /usr/share/applications
  • # cgedit sublime_text_3.desktop
  • 输入以下内容
[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

  • 右键快捷方式
Categories=TextEditor;Development; # 软件类型设置
MimeType=text/plain;
StartupNotify=true
Actions=Window;Document; # 软件类型设置
  • 可以从解压路径下的sublime_text.desktop中拷贝
关键

-如果只是配置上面那些,比如有一个文本有内容,选择sublime打开,是没有内容数据的,需要加上以下配置

Keywords=Text;Editor;
Keywords[zh_CN]=文本;编辑器;Text;Editor;
Keywords[zh_TW]=文字;編輯器;Text;Editor;
  • 在sublime_text.desktop中是没有的,这是我从应用中心安装其他版本拷贝过来的

navicat制作脚本

[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;
posted @ 2025-04-03 14:10  程序员の奇妙冒险  阅读(36)  评论(0)    收藏  举报