Package: needrestart
Version: 3.7-2
Severity: normal
X-Debbugs-Cc: igna...@facundo.ag

Hi, needrestart wasn't showing any desktop notifications, so I run
"needrestart -v" and shows (among other messages) the error:

  ...
  [main] run /etc/needrestart/notify.d/400-notify-send
  [/etc/needrestart/notify.d/400-notify-send] notify user user1 on :0
  runuser: ignoring --preserve-environment, it's mutually exclusive with --login
  runuser: options --{shell,fast,command,session-command,login} and --user are 
mutually exclusive
  ...

So, if I delete the option '-l' from the "runuser" line in
/etc/needrestart/notify.d/400-notify-send like this:

    runuser -p -u "$NR_USERNAME" -- "$NSEND" -a needrestart -u critical -i 
dialog-warning "$MSGTITLE" "$MSGBODY"

it works fine.


Regards,
Facundo

-- Package-specific info:
needrestart output:
blueman-applet[1764], devmon[1766], gossip[10343], nm-applet[1765], 
obexd[1898], picom[1779], pulseaudio[1581], QtWebEngineProc[2096, 2335, 116336, 
82940, 116098, 2093, 2288, 2256, 2364, 2094, 2298, 2417, 2490, 2392, 82866, 
116294], redshift[1852], redshift-gtk[1783], startx[1692], sxhkd[1782], 
unclutter[1810], xdg-desktop-por[1890, 69985], xdg-document-po[69991], 
xdg-permission-[69995], xinit[1707], Xorg[1708], x-terminal-emul[89900], 
x-window-manage[1720], x-www-browser[2078], zathura[2729, 2709, 2749], 
zsh[1582, 1616, 1614, 1612]



-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 6.6.15-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8), 
LANGUAGE=es_AR:es
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages needrestart depends on:
ii  dpkg                       1.22.11
ii  gettext-base               0.22.5-2
ii  libintl-perl               1.33-1
ii  libmodule-find-perl        0.16-2
ii  libmodule-scandeps-perl    1.35-1
ii  libproc-processtable-perl  0.636-1+b2
ii  libsort-naturally-perl     1.03-4
ii  libterm-readkey-perl       2.38-2+b3
ii  perl                       5.38.2-5
ii  xz-utils                   5.6.2-2

Versions of packages needrestart recommends:
ii  libpam-systemd  256.5-1
ii  systemd         256.5-1

Versions of packages needrestart suggests:
ii  iucode-tool    2.3.1-3
ii  libnotify-bin  0.8.3-1+b1

-- no debconf information

Reply via email to