- 如何设置通知中的图标大小?
- 如何设置通知必须显示多长时间?
- 完整的 pynotify 文档在哪里?
- 通知是否可以点击? (例如:如果我点击通知,在终端打印“hello world”)。
最佳答案
How to set how much time the notification have to be shown?
Ubuntu 使用通知 OSD,does not allow you to control the timeout .超时持续时间取决于消息的长度。
Where is a complete pynotify documentation?
在 Ubuntu 上,pynotify
由 python-notify
包提供。
根据/usr/share/doc/python-notify/copyright,包内容来自the galago-project .
最新的 tarball 是 2006-10-08,不包含文档。
我能找到的最接近文档的是“Desktop Notification Specification”。
Can the notification be clickable? (example: if I click on the notification, print "hello world" in the terminal).
不幸的是,没有。参见“Avoiding actions”。
关于python - 如何自定义pynotify?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3988292/