Skip to content

Commit e1c91a0

Browse files
committed
Fix scrcpy fetch
#9
1 parent 3319dcc commit e1c91a0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6991,7 +6991,7 @@ Use keyword "geny" to list and start Genymotion emulator</string>
69916991
<string>aapt_path</string>
69926992
</array>
69936993
<key>version</key>
6994-
<string>1.10.1</string>
6994+
<string>1.10.2</string>
69956995
<key>webaddress</key>
69966996
<string>https://github.com/zjn0505/adb-alfred</string>
69976997
</dict>

scripts/show_device_options.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
api = os.getenv('device_api')
1010
ip = os.getenv("ip")
1111

12-
rc = subprocess.call(['/usr/local/bin/scrcpy', '-v'])
13-
1412
def wordMatch(arg, sentence):
1513
words = arg.lower().split(" ")
1614
sentenceComponents = sentence.lower().split(" ")
@@ -194,7 +192,10 @@ def main(wf):
194192

195193
# Screen Copy with scrcpy
196194
title = "Screen Copy with scrcpy"
197-
log.debug("Rcrc")
195+
try:
196+
rc = subprocess.call(['/usr/local/bin/scrcpy', '-v'])
197+
except OSError:
198+
rc = -1
198199
log.debug(rc)
199200
if rc == 0 and (addAll or wordMatch(arg, title)) and not isEmulator:
200201
it = wf.add_item(title=title,
@@ -213,7 +214,7 @@ def main(wf):
213214
arg="cmd_history",
214215
valid=True)
215216
itemCount += 1
216-
it.add_modifier('cmd', 'clear command history', arg="cmd_history:clear")
217+
it.add_modifier('cmd', 'clear command history', arg="cmd_history:clear")
217218

218219
# CUSTOM ACTION
219220
if itemCount == 0:

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.10.1
1+
1.10.2

0 commit comments

Comments
 (0)