[runDialog] Add 'debugexit' command
There are few uses for being able to exit the shell directly; my current one is that the gtype debug infrastructure is implemented as an atexit() handler.
This commit is contained in:
parent
9d88a13d3c
commit
98bd590a5d
@ -5,6 +5,7 @@ const Clutter = imports.gi.Clutter;
|
|||||||
const GLib = imports.gi.GLib;
|
const GLib = imports.gi.GLib;
|
||||||
const Lang = imports.lang;
|
const Lang = imports.lang;
|
||||||
const Mainloop = imports.mainloop;
|
const Mainloop = imports.mainloop;
|
||||||
|
const Meta = imports.gi.Meta;
|
||||||
const Shell = imports.gi.Shell;
|
const Shell = imports.gi.Shell;
|
||||||
const Signals = imports.signals;
|
const Signals = imports.signals;
|
||||||
const Gettext = imports.gettext.domain('gnome-shell');
|
const Gettext = imports.gettext.domain('gnome-shell');
|
||||||
@ -53,6 +54,10 @@ RunDialog.prototype = {
|
|||||||
// Developer brain backwards compatibility
|
// Developer brain backwards compatibility
|
||||||
'restart': Lang.bind(this, function() {
|
'restart': Lang.bind(this, function() {
|
||||||
global.reexec_self();
|
global.reexec_self();
|
||||||
|
}),
|
||||||
|
|
||||||
|
'debugexit': Lang.bind(this, function() {
|
||||||
|
Meta.exit(Meta.ExitCode.ERROR);
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user