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
This commit is contained in:
parent
afc2253e5d
commit
a101f46544
@ -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…"));
|
||||
|
Loading…
Reference in New Issue
Block a user