Package: needrestart
Version: 3.4-6
Severity: normal
Dear Maintainer,
Thank you for the needrestart package. This is a very useful tool.
I have been trying to get notifications to work on my KDE desktop
environment. So far, I have not had any success.
My expectation is that it should work out of the box for a general user
but that doesn't seem to be the case. I was a bit surprised to see that
there's not much bug reported about this issue on the tracker.
Either, there's something wrong in my setup or else people haven't used
this amazing tool more commonly.
Looking at what needrestart invokes, if I try to run the same commands
from my login environment, it is working.
Before I dive more deep I thought of checking here.
```
rrs@priyasi:~$ MSGTITLE=$(gettext 'Relogin or restarts required!')
14:26 ♒ ॐ ☺ 😄
rrs@priyasi:~$ MSGBODY=$(gettext 'Your session is running obsolete binaries or
libraries as listed below.
> Please consider a relogin or restart of the affected
> processes!')'\n'
14:26 ♒ ॐ ☺ 😄
rrs@priyasi:~$
14:26 ♒ ॐ ☺ 😄
rrs@priyasi:~$ su -p -s /bin/sh -c "$NSEND -a needrestart -u critical -i
dialog-warning \"$MSGTITLE\" \"$MSGBODY\"" "$NR_USERNAME"
su: user does not exist
14:26 ♒ ॐ ☹ 😟=> 1
rrs@priyasi:~$ su -p -s /bin/sh -c "$NSEND -a needrestart -u critical -i
dialog-warning \"$MSGTITLE\" \"$MSGBODY\"" rrs
Password:
sh: 1: -a: not found
14:27 ♒ ॐ ☹ 😟=> 127
rrs@priyasi:~$ su -p -s /bin/sh -c "notify-send -a needrestart -u critical -i
dialog-warning \"$MSGTITLE\" \"$MSGBODY\"" rrs
Password:
14:27 ♒ ॐ ☺ 😄
```
-- Package-specific info:
needrestart output:
Your outdated processes:
agent[3270], at-spi-bus-laun[3252], at-spi2-registr[3897], bwrap[4613],
CoverWorker[71804], dconf-service[3172], dolphin[4564], evolution[283253],
evolution-addre[283325], evolution-alarm[283270], evolution-calen[283299],
evolution-sourc[283264], file.so[4103, 647048], firefox[4133],
flatpak-session[4593], gmenudbusmenupr[3223], goldendict[3262],
gvfs-afc-volume[33477], gvfsd[3371], gvfsd-dnssd[33511], gvfsd-http[81575],
gvfsd-metadata[82675], gvfsd-network[33497], gvfsd-trash[33482],
gvfs-goa-volume[33473], gvfs-gphoto2-vo[33469], gvfs-mtp-volume[33465],
gvfs-udisks2-vo[33460], http.so[52403, 277161], kaccess[3153],
kactivitymanage[3214], kded5[3146], kdeinit5[3133], kglobalaccel5[3167],
kio_http_cache_[3750], kiod5[53547], klauncher[3143], konsole[3785],
kscreen_backend[3185], ksmserver[3180], kwin_x11[3189], kwrite[154717],
libinput-debug-[3381], obexd[3359], org_kde_powerde[3275],
plasma_session[3166], plasmashell[3191], pulseaudio[3070], RDD Process[32091],
sd_dummy[47694], sd_espeak-ng[47688], sd_generic[47697],
speech-dispatch[47700], startplasma-x11[3080], systemd[3046],
thumbnail.so[71827], Web Content[11689, 17838, 17892, 11636, 4198, 19076, 4967,
4474], WebExtensions[4243], WebKitNetworkPr[283297], WebKitWebProces[283296,
283489], xdg-dbus-proxy[4607], xdg-desktop-por[3892, 3874],
xdg-document-po[3878], xdg-permission-[3881], xembedsniproxy[3200],
zuluMount-gui[3246]
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.4.0-4-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_USER
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages needrestart depends on:
ii binutils 2.34-5
ii dpkg 1.19.7
ii gettext-base 0.19.8.1-10
ii libintl-perl 1.26-2
ii libmodule-find-perl0.15-1
ii libmodule-scandeps-perl1.27-1
ii libproc-processtable-perl 0.59-2
ii libsort-naturally-perl 1.03-2
ii libterm-readkey-perl 2.38-1+b1
ii perl 5.30.0-9
ii xz-utils 5.2.4-1+b1
Versions of packages needrestart recommends:
ii libpam-systemd 244.3-1
Versions of packages needrestart suggests:
ii iucode-tool2.3.1-1
ii libnotify-bin 0.7.9-1
-- Configuration Files:
/etc/needrestart/notify.d/400-notify-send changed:
NSEND='/usr/bin/notify-send'
test -x "$NSEND" || exit 1
. /usr/lib/needrestart/notify.d.sh
if [ "$NR_NOTIFYD_DISABLE_NOTIFY_SEND" = '1' ]; then
echo "[$0] disabled in global config" 1>&2
exit 1
fi
case "$NR_SESSION" in
session*)
DBUS_SESSION_BUS_ADDRESS=$(sed -z -n s/^DBUS_SESSION_BUS_ADDRESS=//p
"/proc/$NR_SESSPPID/environ")
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
unset DBUS_SESSION_BUS_ADDRESS
fi
export DISPLAY=$(sed -z -n s/^DISPLAY=//p "/proc/$NR_SESSPPID/environ")
export XAUTHORITY=$(sed -z -n s/^XAUTHORITY=//p
"/proc/$NR_SESSPPID/environ")
if [ -z "$DISPLAY" ]; then
echo "[$0] could not find DISPLAY