shellDBus: Lock down Eval() to be a development tool only
https://bugzilla.gnome.org/show_bug.cgi?id=662891
This commit is contained in:
parent
a8e35422f2
commit
85cd189a69
@ -93,6 +93,9 @@ GnomeShell.prototype = {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
Eval: function(code) {
|
Eval: function(code) {
|
||||||
|
if (!global.settings.get_boolean('development-tools'))
|
||||||
|
return [false, null];
|
||||||
|
|
||||||
let returnValue;
|
let returnValue;
|
||||||
let success;
|
let success;
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user