[Desktop] 我写了行代码,产生了通知,请问通知支持点击的吗
Tofloor
poster avatar
raqusty
deepin
2021-10-29 23:45
Author

我想在发送通知提醒我,并附带内容,比如链接,点击可以打开浏览器,请问要怎么做呢?

目前我使用 shell 中键入代码,"notify-send 标题 内容",只是弹出框,没有点击效果的

尝试了相关的参数,(notify-send --help),并没有效果

请问有什么办法实现吗?

Reply Favorite View the author
All Replies
zijinyise
deepin
2021-10-30 01:00
#1

-a 执行程序名

Reply View the author
learner
deepin
2021-10-30 03:26
#2
zijinyise

-a 执行程序名

-a 参数似乎指定的是用在这一条通知中使用哪个程序的图标啊。。

Reply View the author
忘记、过去
deepin
2021-10-30 04:36
#3

好像不行......dtk 的系统通知接口倒是提供了回调,好像挺麻烦的......

Reply View the author
hyw520110
deepin
2021-10-30 06:47
#4

不能点击邮件通知,打开邮件,希望尽快支持(系统自带邮件客户端)

Reply View the author
Wootifer
deepin
2021-10-30 07:52
#5

感觉通知还是个半成品。

Reply View the author
raqusty
deepin
2021-11-01 17:51
#6
zijinyise

-a 执行程序名

-a, --app-name=APP_NAME           Specifies the app name for the icon
只是指定 icon而已

Reply View the author