To close down the Desktop, it seems that is it more intended to
terminate the running instance `gnome-session-ctl --monitor`. Therefore,
the line

ExecStop=-/bin/bash -exc '/usr/bin/killall gnome-session-ctl && logger
"PATCH: killall gnome-session-ctl"'

also work. And from the help page of `gnome-session-ctl` it seems that
there's a special fifo established to terminate the monitor mode.
Therefore, the line

ExecStop=-/bin/bash -exc 'echo "something" \>/run/user/$USER/gnome-
session-leader-fifo && logger "PATCH: written to gnome-session-leader-
fifo"'

also work.

The question now is who is intended to trigger this feature, i.e. to
write to the fifo?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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


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

Reply via email to