[gnome-shell] [runDialog] Add 'debugexit' command



commit 98bd590a5d1cebfd2e54311bfddb19bf36044a33
Author: Colin Walters <walters verbum org>
Date:   Tue Sep 15 17:40:26 2009 -0400

    [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.

 js/ui/runDialog.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js
index 0f97cb2..53315b4 100644
--- a/js/ui/runDialog.js
+++ b/js/ui/runDialog.js
@@ -5,6 +5,7 @@ const Clutter = imports.gi.Clutter;
 const GLib = imports.gi.GLib;
 const Lang = imports.lang;
 const Mainloop = imports.mainloop;
+const Meta = imports.gi.Meta;
 const Shell = imports.gi.Shell;
 const Signals = imports.signals;
 const Gettext = imports.gettext.domain('gnome-shell');
@@ -53,6 +54,10 @@ RunDialog.prototype = {
                                    // Developer brain backwards compatibility
                                    'restart': Lang.bind(this, function() {
                                        global.reexec_self();
+                                   }),
+
+                                   'debugexit': Lang.bind(this, function() {
+                                       Meta.exit(Meta.ExitCode.ERROR);
                                    })
                                  };
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]