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

Commit

Permalink
fix: issue in spawning scrcpy after migrating to list based command e…
Browse files Browse the repository at this point in the history
…xecution

Fixes #305
  • Loading branch information
srevinsaju committed Apr 21, 2022
1 parent eb8398f commit 97c0bcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions guiscrcpy/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,9 +1161,13 @@ def start_act(self):
if self.cmx is not None:
self.config["cmx"] = " ".join(map(str, self.cmx))

arguments_scrcpy = "{} {} {}".format(
self.options, self.config["extra"], self.config["cmx"]
)
arguments_scrcpy = [
i
for i in "{} {} {}".format(
self.options, self.config["extra"], self.config["cmx"]
).split()
if i != ""
]
progress = self.progress(progress)

# ====================================================================
Expand Down
2 changes: 1 addition & 1 deletion guiscrcpy/lib/bridge/scrcpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def post_init(self):

def start(self, args, stdout=PIPE, stderr=PIPE):
proc = open_process(
[self.path, args],
[self.path] + args,
stdout=stdout,
stderr=stderr,
)
Expand Down

0 comments on commit 97c0bcd

Please sign in to comment.