Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
教大家怎么把自己造的轮子添加到启动菜单.
Apps Section
768
views ·
0
replies ·
To
floor
Go
t1st
deepin
2018-01-03 22:18
Author
首先写一个轮子或者去git clone一个,这里以论坛rekols写的 rekols词典为例.
先git : git clone
https://github.com/rekols/dictionary-reborn.git
编译文件, 我这里直接用qt creator 编译(也可以直接命令行qmake make编译)
得到可执行文件 dictionary-reborn
deepin的启动器里的快捷文件存放在 /usr/share/applications 文件夹里面, 有很多以 .desktop后缀为名的文件,这就是快捷方式
我们在该文件目录下新建一个文件 sudo gedit my-dictionary.desktop
然后贴入以下文本
[Desktop Entry]
Version=1.0
Name=muqiu-dictionary
Comment=this is muqiu-dictionary
Exec=/home/muqiu/myOwnProgram/dictionary/muqiu-dictionary
Icon=/home/muqiu/myOwnProgram/dictionary/logo.svg
Terminal=false
Type=Application
Categories=Application;Utility;Dictionary
name就是软件名字,comment是注释,exec是可执行文件的路径,icon是软件图标,terminal是是否以终端方式启动,type是类型,Categories是分类,(根据自己的情况修改)
完了以后保存,就可以在启动器里面看到自己的程序了.最后上一张图.美滋滋
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Looking Deepin ci 25.2.0 Developer/Unstable repositories
How to fix grub boot menu that has disappeared?
Popular Events
More
[Desktop Entry]
Version=1.0
Name=muqiu-dictionary
Comment=this is muqiu-dictionary
Exec=/home/muqiu/myOwnProgram/dictionary/muqiu-dictionary
Icon=/home/muqiu/myOwnProgram/dictionary/logo.svg
Terminal=false
Type=Application
Categories=Application;Utility;Dictionary
name就是软件名字,comment是注释,exec是可执行文件的路径,icon是软件图标,terminal是是否以终端方式启动,type是类型,Categories是分类,(根据自己的情况修改)
完了以后保存,就可以在启动器里面看到自己的程序了.最后上一张图.美滋滋