User Tools

Site Tools


general:linux:needrestart

Workaround for bug #1024426 that is causing long timeout when using needrestart

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024426

--- /etc/needrestart/notify.d/400-notify-send.org       2021-04-12 10:04:21.000000000 +0200
+++ /etc/needrestart/notify.d/400-notify-send   2022-11-30 13:38:28.340763726 +0100
@@ -29,13 +29,14 @@
 
 case "$NR_SESSION" in
     session*)
-       DBUS_SESSION_BUS_ADDRESS=$(sed -z -n s/^DBUS_SESSION_BUS_ADDRESS=//p "/proc/$NR_SESSPPID/environ")
+       export 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")
+#      export XDG_RUNTIME_DIR=$(sed -z -n s/^XDG_RUNTIME_DIR=//p "/proc/$NR_SESSPPID/environ")
 
        if [ -z "$DISPLAY" ]; then
            echo "[$0] could not find DISPLAY for $NR_USERNAME on $NR_SESSION" 1>&2
general/linux/needrestart.txt · Last modified: 2023/01/03 11:55 by sunkan

Donate Powered by PHP Valid HTML5 Valid CSS Run on Debian Driven by DokuWiki