[gnome-shell] shellDBus: Lock down Eval() to be a development tool only
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shellDBus: Lock down Eval() to be a development tool only
- Date: Sat, 5 Nov 2011 21:01:06 +0000 (UTC)
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]