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:
parent
748539a037
commit
4f5d4db154
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user