开发者

How to customize pynotify?

开发者 https://www.devze.com 2023-01-20 23:49 出处:网络
How to set icon size in the notifications? How to set how much time the notification have to be shown?
  1. How to set icon size in the notifications?
  2. How to set how much time the notification have to be shown?
  3. Where is a complete pynotify documentation?
  4. Can the notification be clickable? (example: if I click o开发者_高级运维n the notification, print "hello world" in the terminal).


How to set how much time the notification have to be shown?

Ubuntu uses Notify OSD, which does not allow you to control the timeout. The timeout duration depends on the length of the message.

Where is a complete pynotify documentation?

On Ubuntu, pynotify is provided by the python-notify package. According to /usr/share/doc/python-notify/copyright, the package contents come from the galago-project.

The latest tarball was on 2006-10-08, and contains no documentation.

The closest thing I could find to documentation was the "Desktop Notification Specification".

Can the notification be clickable? (example: if I click on the notification, print "hello world" in the terminal).

Unfortunately, no. See "Avoiding actions".

0

精彩评论

暂无评论...
验证码 换一张
取 消