[gnome-shell] shellDBus: Lock down Eval() to be a development tool only



commit 85cd189a69524fb38bbc2d1f015f66b53d5b7e92
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Oct 27 17:41:06 2011 -0400

    shellDBus: Lock down Eval() to be a development tool only
    
    https://bugzilla.gnome.org/show_bug.cgi?id=662891

 js/ui/shellDBus.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index 1fcfb0c..4f81c53 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -93,6 +93,9 @@ GnomeShell.prototype = {
      *
      */
     Eval: function(code) {
+        if (!global.settings.get_boolean('development-tools'))
+            return [false, null];
+
         let returnValue;
         let success;
         try {



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