fix: installer & lnk-runs

This commit is contained in:
2024-05-30 23:31:07 +02:00
parent cb03300eb2
commit c9c70b418c
2 changed files with 16 additions and 2 deletions

View File

@@ -53,7 +53,10 @@ def run_exe(path, synchronous=False):
'''Launches a given software'''
if os.name != "nt":
subprocess.Popen(["wine64", path], cwd=os.path.dirname(path))
if ".lnk" in path:
subprocess.Popen(["wine64", "start", path])
else:
subprocess.Popen(["wine64", path], cwd=os.path.dirname(path))
return
if synchronous: