Commit 91e74ccf authored by Ray Strode's avatar Ray Strode

manager: restart gnome-shell on X11 if it crashes

gnome-shell calls itself a DisplayServer for ordering reasons,
and because we share one file between wayland an X11.

gnome-session currently doesn't try to restart a DisplayServer if
it crashes, since the presumption is the old session will come down
with it.

This commit restarts "display server" applications on anything but
wayland, because they can't actually be a display server in other
cases.

https://bugzilla.gnome.org/show_bug.cgi?id=760332
parent e9d6bfe0
......@@ -605,6 +605,12 @@ is_app_display_server (GsmManager *manager,
{
GsmManagerPhase phase;
/* Apps can only really act as a display server if
* we're a wayland session.
*/
if (g_strcmp0 (g_getenv ("XDG_SESSION_TYPE"), "wayland") != 0)
return FALSE;
phase = gsm_app_peek_phase (app);
return (phase == GSM_MANAGER_PHASE_DISPLAY_SERVER &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment