do not use spawnvp under windows (user will have to give the full path to the application)
This commit is contained in:
parent
0bae187b4c
commit
49e6daabd7
|
@ -3026,7 +3026,10 @@ class plugin:
|
|||
args = conf.split()
|
||||
app = args[0]
|
||||
args.append(url)
|
||||
os.spawnvp(os.P_NOWAIT, app, args)
|
||||
if os.name == 'posix':
|
||||
os.spawnvp(os.P_NOWAIT, app, args)
|
||||
else:
|
||||
os.spawnv(os.P_NOWAIT, app, args)
|
||||
|
||||
def play_timeout(self, pid):
|
||||
pidp, r = os.waitpid(pid, os.WNOHANG)
|
||||
|
|
Loading…
Reference in New Issue