1
0
mirror of https://github.com/lutris/lutris synced 2024-07-08 19:45:47 +00:00

Add STORE env var

This commit is contained in:
Mathieu Comandon 2024-03-10 13:35:30 -07:00
parent 7aa376944b
commit 993ebde5e8
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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