You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-26 21:53:54 +01:00
put player process in another session (they get killed by sigint)
This commit is contained in:
@@ -91,7 +91,7 @@ class ProcessManager:
|
||||
|
||||
cmd.append(track_path)
|
||||
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
proc = subprocess.Popen(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, start_new_session=True)
|
||||
pr = Process(proc, track_path, time.time(), duration)
|
||||
with self.lock: self.processes.append(pr)
|
||||
return pr
|
||||
|
||||
Reference in New Issue
Block a user