summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrainDoctor <traindoctor@protonmail.com>2023-03-05 18:12:31 -0800
committerTrainDoctor <traindoctor@protonmail.com>2023-03-05 18:12:31 -0800
commit63b25bce8534d6177a45a7a6a75dfd6ce4709690 (patch)
tree1c7aa1c0b18f872eda95895ba46bf2506e4e4f60
parentdd0bfb482119f44ff80d76b0847ca10e77c9b15d (diff)
downloaddecky-loader-2.6.3-pre3.tar.gz
decky-loader-2.6.3-pre3.zip
All good, code was not modified to accomodate intsv2.6.3-pre3
-rw-r--r--backend/plugin.py4
-rw-r--r--plugin/decky_plugin.py4
-rw-r--r--plugin/decky_plugin.pyi4
3 files changed, 6 insertions, 6 deletions
diff --git a/backend/plugin.py b/backend/plugin.py
index 77caf004..eda63447 100644
--- a/backend/plugin.py
+++ b/backend/plugin.py
@@ -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)
diff --git a/plugin/decky_plugin.py b/plugin/decky_plugin.py
index 8464e489..3a4e0155 100644
--- a/plugin/decky_plugin.py
+++ b/plugin/decky_plugin.py
@@ -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`.
diff --git a/plugin/decky_plugin.pyi b/plugin/decky_plugin.pyi
index b86a7a70..72e1686e 100644
--- a/plugin/decky_plugin.pyi
+++ b/plugin/decky_plugin.pyi
@@ -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`.