mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 23:52:47 +01:00
13 lines
352 B
Python
13 lines
352 B
Python
import shlex
|
|
|
|
from dzgui.const.constants import STEAM_CMD
|
|
from dzgui.init.proc import is_sandboxed
|
|
|
|
|
|
def concat_bash_args(command: str) -> list[str]:
|
|
# NOTE: NSGs spawned from sandbox cannot access host application commands,
|
|
# so fallback to Steam internal URIs
|
|
if is_sandboxed():
|
|
return [STEAM_CMD]
|
|
return shlex.split(command)
|