gnome-shell-jhbuild: Allow passing args to gnome-shell
$ ./gnome-shell -- --list-modes https://bugzilla.gnome.org/show_bug.cgi?id=689778
This commit is contained in:
parent
c4ba31cb23
commit
cfacb05461
@ -93,6 +93,7 @@ def start_shell():
|
||||
args.append('--replace')
|
||||
if options.sync:
|
||||
args.append('--sync')
|
||||
args += params
|
||||
return subprocess.Popen(args, env=env)
|
||||
|
||||
def run_shell():
|
||||
@ -156,11 +157,7 @@ parser.add_option("", "--sync", action="store_true")
|
||||
parser.add_option("", "--version", action="callback", callback=show_version,
|
||||
help="Display version and exit")
|
||||
|
||||
options, args = parser.parse_args()
|
||||
|
||||
if args:
|
||||
parser.print_usage()
|
||||
sys.exit(1)
|
||||
options, params = parser.parse_args()
|
||||
|
||||
# Handle ssh logins
|
||||
if 'DISPLAY' not in os.environ:
|
||||
|
Loading…
Reference in New Issue
Block a user