mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 23:32:00 +00:00
All good, code was not modified to accomodate ints
This commit is contained in:
+2
-2
@@ -66,8 +66,8 @@ class PluginWrapper:
|
||||
environ["USER"] = "root" if "root" in self.flags else helpers.get_user()
|
||||
environ["USER_ID"] = "0" if "root" in self.flags else helpers.get_user_id()
|
||||
environ["DECKY_VERSION"] = helpers.get_loader_version()
|
||||
environ["DECKY_USER"] = helpers.get_user()
|
||||
environ["DECKY_USER_ID"] = helpers.get_user_id()
|
||||
environ["DECKY_USER"] = str(helpers.get_user())
|
||||
environ["DECKY_USER_ID"] = str(helpers.get_user_id())
|
||||
environ["DECKY_USER_HOME"] = helpers.get_home_path()
|
||||
environ["DECKY_HOME"] = helpers.get_homebrew_path()
|
||||
environ["DECKY_PLUGIN_SETTINGS_DIR"] = path.join(environ["DECKY_HOME"], "settings", self.plugin_directory)
|
||||
|
||||
@@ -38,7 +38,7 @@ It would be `root` if `root` was specified in the plugin's flags otherwise the u
|
||||
e.g.: `deck`
|
||||
"""
|
||||
|
||||
USER_ID: str = str(os.getenv("USER_ID", default="-1"))
|
||||
USER_ID: int = int(os.getenv("USER_ID", default="-1"))
|
||||
"""
|
||||
The effective UID running the process.
|
||||
Environment variable: `USER_ID`.
|
||||
@@ -60,7 +60,7 @@ Environment variable: `DECKY_USER`.
|
||||
e.g.: `deck`
|
||||
"""
|
||||
|
||||
DECKY_USER_ID: str = str(os.getenv("DECKY_USER_ID", default="-1"))
|
||||
DECKY_USER_ID: int = int(os.getenv("DECKY_USER_ID", default="-1"))
|
||||
"""
|
||||
The UID of the user whose home decky resides in.
|
||||
Environment variable: `DECKY_USER_ID`.
|
||||
|
||||
@@ -36,7 +36,7 @@ It would be `root` if `root` was specified in the plugin's flags otherwise the u
|
||||
e.g.: `deck`
|
||||
"""
|
||||
|
||||
USER_ID: str
|
||||
USER_ID: int
|
||||
"""
|
||||
The effective UID running the process.
|
||||
Environment variable: `UID`.
|
||||
@@ -58,7 +58,7 @@ Environment variable: `DECKY_USER`.
|
||||
e.g.: `deck`
|
||||
"""
|
||||
|
||||
DECKY_USER_ID: str
|
||||
DECKY_USER_ID: int
|
||||
"""
|
||||
The UID of the user whose home decky resides in.
|
||||
Environment variable: `DECKY_USER_ID`.
|
||||
|
||||
Reference in New Issue
Block a user