From a101f46544ee78a208e9deffba668070cbf50873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 27 Feb 2015 19:34:45 +0100 Subject: [PATCH] runDialog: Disable restart command on wayland Clients can be expected to deal with the WM going away temporarily, but not the display server - so when running as wayland compositor, a restart is generally a fancy way of killing the user session, and there's little we can do about it except for preventing the user to shoot herself in the foot by throwing an error. https://bugzilla.gnome.org/show_bug.cgi?id=741665 --- js/ui/runDialog.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 9c9ee6706..495567f03 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -272,6 +272,10 @@ const RunDialog = new Lang.Class({ }, _restart: function() { + if (Meta.is_wayland_compositor()) { + this._showError('Restart is not available on Wayland'); + return; + } this._shouldFadeOut = false; this.close(); Meta.restart(_("Restarting…"));