diff options
| author | Party Wumpus <48649272+PartyWumpus@users.noreply.github.com> | 2023-07-21 23:00:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 23:00:08 +0100 |
| commit | 37c1a0e9648e6b84aaa996d5ecfd1d2d5d49622f (patch) | |
| tree | 4e3d71d71b1731fa6a508d7e1a9921c1b1fe2d8a /backend/main.py | |
| parent | 6d086fb5d52a690c6e07c49ba065f1d83a8ab1db (diff) | |
| download | decky-loader-37c1a0e9648e6b84aaa996d5ecfd1d2d5d49622f.tar.gz decky-loader-37c1a0e9648e6b84aaa996d5ecfd1d2d5d49622f.zip | |
Ignore chmod if decky is not run as root (#510)
* Ignore chmod if decky is not run as root
* I can't read
* i managed to make a mistake on 2/3 lines i edited....
* add warning on startup
* logger.warn is depreciated
* Update localplatformlinux.py
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/main.py b/backend/main.py index 2eb785c7..b2e3e74a 100644 --- a/backend/main.py +++ b/backend/main.py @@ -24,7 +24,7 @@ from aiohttp_jinja2 import setup as jinja_setup # local modules from browser import PluginBrowser from helpers import (REMOTE_DEBUGGER_UNIT, csrf_middleware, get_csrf_token, - mkdir_as_user, get_system_pythonpaths) + mkdir_as_user, get_system_pythonpaths, get_effective_user_id) from injector import get_gamepadui_tab, Tab, get_tabs, close_old_tabs from loader import Loader @@ -178,6 +178,9 @@ if __name__ == "__main__": # Required for multiprocessing support in frozen files multiprocessing.freeze_support() + else: + if get_effective_user_id() != 0: + logger.warning(f"decky is running as an unprivileged user, this is not officially supported and may cause issues") # Append the loader's plugin path to the recognized python paths sys.path.append(path.join(path.dirname(__file__), "plugin")) |
