Skip to content

Commit

Permalink
修复 subprocess 弹窗问题,更新版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzaphkiel committed Aug 7, 2023
1 parent 9b2ec12 commit 1cbfd4c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Config(QConfig):

YEAR = 2023
AUTHOR = "Zaphkiel"
VERSION = "0.1.0"
VERSION = "0.2.0"
FEEDBACK_URL = "https://github.com/Zzaphkiel/Seraphine/issues"
GITHUB_URL = "https://github.com/Zzaphkiel/Seraphine"

Expand Down
2 changes: 1 addition & 1 deletion app/lol/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self):

def start(self):
command = "wmic process WHERE name='LeagueClientUx.exe' GET commandline"
output = subprocess.check_output(command).decode("gbk")
output = subprocess.check_output(command, shell=True).decode("gbk")

self.port = re.findall(r'--app-port=(.+?)"', output)[0]
self.token = re.findall(r'--remoting-auth-token=(.+?)"', output)[0]
Expand Down
2 changes: 1 addition & 1 deletion app/lol/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def isLolProcessExists():
processes = subprocess.check_output("tasklist")
processes = subprocess.check_output("tasklist", shell=True)
return b'LeagueClientUx.exe' in processes


Expand Down
Binary file added app/resource/images/logo.ico
Binary file not shown.

0 comments on commit 1cbfd4c

Please sign in to comment.