Properly launch games on Windows

This commit is contained in:
kramo
2023-03-20 19:29:55 +01:00
parent 149c417901
commit 921968bec3
3 changed files with 22 additions and 4 deletions

View File

@@ -63,7 +63,11 @@ def get_game(task, datatypes, current_time, parent_widget, appmanifest, steam_di
task.return_value(None)
return
values["executable"] = "xdg-open steam://rungameid/" + values["appid"]
values["executable"] = (
"start steam://rungameid/" + values["appid"]
if os.name == "nt"
else "xdg-open steam://rungameid/" + values["appid"]
)
values["hidden"] = False
values["source"] = "steam"
values["added"] = current_time