I found a workaround by send a SIGTERM to the gnome-session-binary:

ubuntu@lenovy:~$ cat /lib/systemd/user/gnome-session.service
[Unit]
Description=GNOME Session Manager (Ubuntu downstream version for Unity support)
PartOf=graphical-session.target

[Service]
ExecStart=/bin/sh -exc '[ "$DESKTOP_SESSION" != "gnome-classic" ] || export 
GNOME_SHELL_SESSION_MODE=classic; \
    export GNOME_SESSION_XDG_SESSION_PATH=${XDG_SESSION_PATH}; \
    [ "$DESKTOP_SESSION" = gnome-flashback-metacity ] && \
        exec gnome-session --session=$DESKTOP_SESSION 
--disable-acceleration-check || \
        exec gnome-session --session=$DESKTOP_SESSION --debug'
#<<< 20250128/gj        send SIGTERM to the gnome session binary
ExecStop=-/bin/bash -exc 'GS_PID=$(ps x -o "pid,args" | grep 
"[g]nome-session-binary --session=unity" | awk \'{print $1}\') && [ "$GS_PID" ] 
&& logger "PATCH: kill $GS_PID ..." && kill $GS_PID '
#>>>

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-session in Ubuntu.
https://bugs.launchpad.net/bugs/2063383

Title:
  [SRU] Ubuntu Unity takes 90 seconds to log out

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/2063383/+subscriptions


-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to