From 3b59542ddd1adde0ead55c688195776e8374bfbe Mon Sep 17 00:00:00 2001 From: Jayden Date: Sun, 5 Mar 2023 19:28:21 -0500 Subject: Expose USER_ID and DECKY_USER_ID to plugins (#389) --- plugin/decky_plugin.pyi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'plugin/decky_plugin.pyi') diff --git a/plugin/decky_plugin.pyi b/plugin/decky_plugin.pyi index b311a55a..72e1686e 100644 --- a/plugin/decky_plugin.pyi +++ b/plugin/decky_plugin.pyi @@ -36,6 +36,14 @@ It would be `root` if `root` was specified in the plugin's flags otherwise the u e.g.: `deck` """ +USER_ID: int +""" +The effective UID running the process. +Environment variable: `UID`. +It would be `0` if `root` was specified in the plugin's flags otherwise the id of the user whose home decky resides in. +e.g.: `1000` +""" + DECKY_VERSION: str """ The version of the decky loader. @@ -50,6 +58,13 @@ Environment variable: `DECKY_USER`. e.g.: `deck` """ +DECKY_USER_ID: int +""" +The UID of the user whose home decky resides in. +Environment variable: `DECKY_USER_ID`. +e.g.: `1000` +""" + DECKY_USER_HOME: str """ The home of the user where decky resides in. -- cgit v1.2.3