fix: mpv in verify_sync
This commit is contained in:
1 parent
f883c78b4b
commit
b72616fb7f
1 file changed
+2
-8
+2
-8
@@ -413,10 +413,7 @@ class SyncWindow(QtWidgets.QMainWindow):
|
|||||||
cmd = [sys.executable, script, "--config", "config.toml",
|
cmd = [sys.executable, script, "--config", "config.toml",
|
||||||
"--lag", f"{self.lag_sec:.6f}", "--mode", "short"]
|
"--lag", f"{self.lag_sec:.6f}", "--mode", "short"]
|
||||||
print(f"Launching: {' '.join(cmd)}")
|
print(f"Launching: {' '.join(cmd)}")
|
||||||
env = os.environ.copy()
|
subprocess.Popen(cmd, cwd=os.path.dirname(os.path.abspath(__file__)))
|
||||||
env["LC_NUMERIC"] = "C"
|
|
||||||
env["QT_QPA_PLATFORM"] = "xcb"
|
|
||||||
subprocess.Popen(cmd, cwd=os.path.dirname(os.path.abspath(__file__)), env=env)
|
|
||||||
|
|
||||||
def on_apply_sync(self):
|
def on_apply_sync(self):
|
||||||
"""Run apply_sync.py on full files, then launch verify_sync.py in full mode."""
|
"""Run apply_sync.py on full files, then launch verify_sync.py in full mode."""
|
||||||
@@ -438,10 +435,7 @@ class SyncWindow(QtWidgets.QMainWindow):
|
|||||||
cmd2 = [sys.executable, verify_script, "--config", "config.toml",
|
cmd2 = [sys.executable, verify_script, "--config", "config.toml",
|
||||||
"--lag", f"{self.lag_sec:.6f}", "--mode", "full"]
|
"--lag", f"{self.lag_sec:.6f}", "--mode", "full"]
|
||||||
print(f"Launching: {' '.join(cmd2)}")
|
print(f"Launching: {' '.join(cmd2)}")
|
||||||
env2 = os.environ.copy()
|
subprocess.Popen(cmd2, cwd=script_dir)
|
||||||
env2["LC_NUMERIC"] = "C"
|
|
||||||
env2["QT_QPA_PLATFORM"] = "xcb"
|
|
||||||
subprocess.Popen(cmd2, cwd=script_dir, env=env2)
|
|
||||||
|
|
||||||
def play(self, which: str):
|
def play(self, which: str):
|
||||||
if not HAS_SD:
|
if not HAS_SD:
|
||||||
|
|||||||
Reference in new issue
Block a user