Add subprocess creation flags to CommandWorker
Passes SUBPROCESS_CREATIONFLAGS to subprocess.Popen in CommandWorker for improved process control. Imports SUBPROCESS_CREATIONFLAGS from ytsage_constants.
This commit is contained in:
@@ -29,7 +29,7 @@ from PySide6.QtWidgets import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from src.core.ytsage_yt_dlp import get_yt_dlp_path
|
from src.core.ytsage_yt_dlp import get_yt_dlp_path
|
||||||
from src.utils.ytsage_constants import YTDLP_DOCS_URL
|
from src.utils.ytsage_constants import YTDLP_DOCS_URL, SUBPROCESS_CREATIONFLAGS
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import yt_dlp
|
import yt_dlp
|
||||||
@@ -85,6 +85,7 @@ class CommandWorker(QObject):
|
|||||||
text=True,
|
text=True,
|
||||||
encoding="utf-8",
|
encoding="utf-8",
|
||||||
errors="replace",
|
errors="replace",
|
||||||
|
creationflags=SUBPROCESS_CREATIONFLAGS,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Stream output
|
# Stream output
|
||||||
|
|||||||
Reference in New Issue
Block a user