[problem help] 任务栏启动器安放自己的小程序
Tofloor
poster avatar
a13843085287
deepin
2024-04-05 15:42
Author

如题,我自己编写了一个Python小程序,想把它放到任务栏启动,按照网上介绍的方法,把程序放到/urs/share/aplications下面,然后就可以拖放到任务栏启动器了。可我如是做了,任然不能。

Reply Favorite View the author
All Replies
a13843085287
deepin
2024-04-05 15:44
#1

写错了:仍然,不是任然。对不起

Reply View the author
HackerNotTerminal
deepin
2024-04-05 15:55
#2

只能用desktop文件好吗?可以做一个desktop文件打开程序。

但自启还有别的方法

Reply View the author
Tonny
deepin
2024-04-05 15:55
#3
It has been deleted!
HackerNotTerminal
deepin
2024-04-05 15:56
#4
a13843085287

写错了:仍然,不是任然。对不起

可以点下面的编辑改的

Reply View the author
HackerNotTerminal
deepin
2024-04-05 15:58
#5
Tonny It has been deleted!

可以用文本编辑器打开桌面图标看看。文件后缀是.desktop,exec后的内容是命令

Reply View the author
Tonny
deepin
2024-04-05 16:06
#6
It has been deleted!
HackerNotTerminal
deepin
2024-04-05 16:09
#7
It has been deleted!
谢克辉
deepin beta test group
2024-04-05 18:30
#8

可以复制一个desktop文件,然后修改里面的内容丢进去

Reply View the author
a13843085287
deepin
2024-04-06 08:58
#9

谢谢!创建并复制一个desktop文件,这个文件能够放到任务栏里

Reply View the author
a13843085287
deepin
2024-04-06 09:07
#10
Tonny It has been deleted!

例如:已打包的程序名:example

在example同名文件夹下创建example.desktop文件。用文本编辑器编辑,写入如下内容,保存即可。双击这个example.desktop即运行。

[Desktop Entry]
Type=Application
Name=example
Comment=example
Exec=/用你的example文件夹路径替代/example
Terminal=false
Categories=Development
StartupNotify=true
NoDisplay=true

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-04-06 14:47
#11
It has been deleted!