For GNOME we can ask gnome-session whether it's running:
gdbus call -e -d org.gnome.SessionManager -o /org/gnome/SessionManager -m
org.gnome.SessionManager.IsSessionRunning
so we reject a crash if:
- $DBUS_SESSION_BUS_ADDRESS exists, but we get a d-bus error when trying to
connect to it (shutting down session bus)
- org.gnome.SessionManager exists on the bus, but the call fails
- calling IsSessionRunning() returns false (being shut down)
I need a reproducer for this, though, to test this theory.
** Changed in: apport (Ubuntu)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/460932
Title:
Do not catch crashes which happen at logout
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/460932/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs