Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit 97c0bcd

Browse files
committed
fix: issue in spawning scrcpy after migrating to list based command execution
Fixes #305
1 parent eb8398f commit 97c0bcd

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

guiscrcpy/launcher.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1161,9 +1161,13 @@ def start_act(self):
11611161
if self.cmx is not None:
11621162
self.config["cmx"] = " ".join(map(str, self.cmx))
11631163

1164-
arguments_scrcpy = "{} {} {}".format(
1165-
self.options, self.config["extra"], self.config["cmx"]
1166-
)
1164+
arguments_scrcpy = [
1165+
i
1166+
for i in "{} {} {}".format(
1167+
self.options, self.config["extra"], self.config["cmx"]
1168+
).split()
1169+
if i != ""
1170+
]
11671171
progress = self.progress(progress)
11681172

11691173
# ====================================================================

guiscrcpy/lib/bridge/scrcpy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def post_init(self):
1717

1818
def start(self, args, stdout=PIPE, stderr=PIPE):
1919
proc = open_process(
20-
[self.path, args],
20+
[self.path] + args,
2121
stdout=stdout,
2222
stderr=stderr,
2323
)

0 commit comments

Comments
 (0)