All good, code was not modified to accomodate ints

This commit is contained in:
TrainDoctor
2023-03-05 18:12:31 -08:00
parent dd0bfb4821
commit 685bbf1a2d
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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`.
+2 -2
View File
@@ -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`.