teejee2008 / ukuu

A paid version of Ukuu is now available with more features. https://teejeetech.in/2019/01/20/ukuu-v19-01/ Kernel Update Utility for Ubuntu-based distributions. Provides desktop notifications when new mainline kernel is available. Lists kernels from http://kernel.ubuntu.com/~kernel-ppa/mainline/ with options to install and remove.
https://teejeetech.in/ukuu
GNU Lesser General Public License v3.0
400 stars 157 forks source link

Ukuu pops up multiple update notices if left alone for long enough #108

Open kode54 opened 5 years ago

kode54 commented 5 years ago

Describe the bug If update notices are triggered while the machine is locked, the windows continue opening up every two hours until dismissed.

To Reproduce Steps to reproduce the behavior:

  1. Lock the desktop.
  2. Wait for a kernel update.
  3. Unlock the desktop.

Alternate steps to reproduce

  1. Wait for a kernel update.
  2. Run ukuu --notify repeatedly.

Expected behavior A single update notice is on the screen, notifying of a new kernel update.

Screenshots Can't do this, I just installed the update.

System (please complete the following information):

jboelter commented 5 years ago

Just came here looking for this issue, here's a screenshot.

img_20181002_130344

awtotty commented 5 years ago

The problem is that even though ukuu is sending a timeout option with the notification, the timeout is not handled appropriately by notification manager.

This is a known Ubuntu and GNOME Shell design decision, which results in the expire time option to be completely ignored. Seems to be true for KDE, too. Check man notify-send:

-t, --expire-time=TIME The duration, in milliseconds, for the notification to appear on screen. (Ubuntu's Notify OSD and GNOME Shell both ignore this parameter.)

See this thread and this bug report.

If you want the timeout to be implemented by your notification manager, try:

sudo add-apt-repository ppa:leolik/leolik
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install libnotify-bin
pkill notify-osd

which adds additional features to notify-send, including making the timeout option work.