[gnome-shell] gnome-shell.in: Drop --eval-file option



commit 70fbfea5f50c05302acc51550168379cb2ed79d7
Author: Colin Walters <walters verbum org>
Date:   Thu Feb 17 14:58:03 2011 -0500

    gnome-shell.in: Drop --eval-file option
    
    Not really used, and makes the script smaller.  We could probably
    put a sample script on the wiki instead.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=642084

 src/gnome-shell.in |   14 --------------
 1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/src/gnome-shell.in b/src/gnome-shell.in
index 28938ff..984abc6 100755
--- a/src/gnome-shell.in
+++ b/src/gnome-shell.in
@@ -524,8 +524,6 @@ parser.add_option("", "--perf-output", metavar="OUTPUT_FILE",
 		  help="Output file to write performance report")
 parser.add_option("", "--perf-upload", action="store_true",
 		  help="Upload performance report to server")
-parser.add_option("", "--eval-file", metavar="EVAL_FILE",
-                  help="Evaluate the contents of the given JavaScript file")
 parser.add_option("", "--version", action="callback", callback=show_version,
                   help="Display version and exit")
 
@@ -544,18 +542,6 @@ if 'DISPLAY' not in os.environ:
     running_env = get_running_session_environs()
     os.environ.update(running_env)
 
-if options.eval_file:
-    f = open(options.eval_file)
-    contents = f.read()
-    f.close()
-
-    session = dbus.SessionBus()
-    shell = session.get_object('org.gnome.Shell', '/org/gnome/Shell')
-    shell = dbus.Interface(shell, 'org.gnome.Shell')
-    result = shell.Eval(contents)
-    print result
-    sys.exit(0)
-
 if options.debug_command:
     options.debug = True
 elif options.debug:



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