From 9da734706cc9ea0745aecfe09221e10e5e18f193 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 13 Feb 2009 14:40:52 -0500 Subject: [PATCH] Add --sync option to enable X synchronization This is useful for debugging. --- scripts/launcher.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/launcher.py b/scripts/launcher.py index 8e336f573..55b31d85f 100644 --- a/scripts/launcher.py +++ b/scripts/launcher.py @@ -40,6 +40,7 @@ class Launcher: parser.add_option("", "--debug-command", metavar="COMMAND", help="Command to use for debugging (defaults to 'gdb --args')") parser.add_option("-v", "--verbose", action="store_true") + parser.add_option("" "--sync", action="store_true") if accept_geometry: parser.add_option("", "--geometry", metavar="GEOMETRY", help="Specify screen geometry", @@ -122,6 +123,8 @@ class Launcher: plugin = os.path.join(self.plugin_dir, "libgnome-shell.la") args.extend(['metacity', '--mutter-plugins=' + plugin, '--replace']) + if self.options.sync: + args.append('--sync') return subprocess.Popen(args, env=env) def is_verbose(self):