Skip to content
Permalink
Browse files
ignore quit failure for developers
After a few seconds, force the session manager to shutdown if there
remain activities that are not responding.

	"just throw fire on everything and kill it anyway" -- Sam
  • Loading branch information
quozl committed Oct 16, 2015
1 parent 2b13eb6 commit 85451d2
Showing 1 changed file with 4 additions and 2 deletions.
@@ -18,6 +18,7 @@
import os
import logging

from gi.repository import GObject
from gi.repository import Gdk
from gi.repository import SugarExt

@@ -159,8 +160,9 @@ def handle_frame(self, event_time):

def handle_logout(self, event_time):
if "SUGAR_DEVELOPER" in os.environ:
session.get_session_manager().logout()
# FIXME: deal more cleanly with no response to save yourself
session_manager = session.get_session_manager()
session_manager.logout()
GObject.timeout_add_seconds(3, session_manager.shutdown_completed)

def handle_open_search(self, event_time):
journalactivity.get_journal().show_journal()

0 comments on commit 85451d2

Please sign in to comment.