1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-10 10:04:21 +01:00

Fix bug in open_command execution

I wasn't able to get the open_command working when I wanted to pass a magnet URL to the open_command. With `shell=True` python opens a new shell for the executable.
This commit is contained in:
kramsee 2018-04-15 14:21:32 +02:00 committed by GitHub
parent 748539a037
commit 4f5d4db154
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ def pirate_main(args):
elif args.output == 'open_command':
cmd = parse_cmd(args.open_command, url)
printer.print(" ".join(cmd))
subprocess.call(cmd)
subprocess.call(cmd, shell=True)
elif args.output == 'browser_open':
webbrowser.open(url)