From 993ebde5e8be7aa3328264dc465e896c78fd684f Mon Sep 17 00:00:00 2001 From: Mathieu Comandon Date: Sun, 10 Mar 2024 13:35:30 -0700 Subject: [PATCH] Add STORE env var --- lutris/game.py | 1 + lutris/util/wine/proton.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lutris/game.py b/lutris/game.py index 9f11983f4..145e2f53d 100644 --- a/lutris/game.py +++ b/lutris/game.py @@ -677,6 +677,7 @@ class Game(GObject.Object): command, env = get_launch_parameters(self.runner, gameplay_info) env["game_name"] = self.name # What is this used for?? env["GAMEID"] = proton.get_game_id(self) + env["STORE"] = self.service if self.service != "humblebundle" else "humble" self.game_runtime_config = { "args": command, "env": env, diff --git a/lutris/util/wine/proton.py b/lutris/util/wine/proton.py index c6a17949e..c048eb979 100644 --- a/lutris/util/wine/proton.py +++ b/lutris/util/wine/proton.py @@ -1,6 +1,6 @@ """Utility module to deal with Proton and ULWGL""" -import os import json +import os from typing import Generator, List from lutris import settings @@ -108,5 +108,5 @@ def get_game_id(game): ) and ulwgl_game["appid"] == game.appid ): - return ulwgl_game["ulwgl_id"].upper() + return ulwgl_game["ulwgl_id"] return default_id