diff options
| author | suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> | 2023-04-25 05:12:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-24 20:12:42 -0700 |
| commit | d6f336d84b8b00161a688d4b39b82165a3ebe1f3 (patch) | |
| tree | 6b166fa18cdde58e73ab0d4a2a1d275842e5c039 /backend/helpers.py | |
| parent | 4777963b65ea9310bcdd3f56a6516cf15476e490 (diff) | |
| download | decky-loader-d6f336d84b8b00161a688d4b39b82165a3ebe1f3.tar.gz decky-loader-d6f336d84b8b00161a688d4b39b82165a3ebe1f3.zip | |
Feat/configurable paths (#404)v2.7.2-pre2
Diffstat (limited to 'backend/helpers.py')
| -rw-r--r-- | backend/helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/helpers.py b/backend/helpers.py index 668a252d..b2464e8b 100644 --- a/backend/helpers.py +++ b/backend/helpers.py @@ -36,9 +36,9 @@ async def csrf_middleware(request, handler): return await handler(request) return Response(text='Forbidden', status='403') -# Get the default homebrew path unless a home_path is specified +# Get the default homebrew path unless a home_path is specified. home_path argument is deprecated def get_homebrew_path(home_path = None) -> str: - return os.path.join(home_path if home_path != None else localplatform.get_home_path(), "homebrew") + return localplatform.get_unprivileged_path() # Recursively create path and chown as user def mkdir_as_user(path): |
