diff options
| author | AAGaming <aagaming@riseup.net> | 2026-10-17 20:31:24 -0400 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-10-17 20:31:24 -0400 |
| commit | a349af9d76d0457067fb546872304df8cdb6ab27 (patch) | |
| tree | a2376f6b6288a4c79dea62d90510b09051ce73fb /backend/decky_loader/localplatform/localplatformmac.py | |
| parent | dae497ef949d4b36b2bdc3537f4f52b1cfdafa2e (diff) | |
| parent | 82df584b461fe9a283b687ad9d883ea1cb8767a8 (diff) | |
| download | decky-loader-a349af9d76d0457067fb546872304df8cdb6ab27.tar.gz decky-loader-a349af9d76d0457067fb546872304df8cdb6ab27.zip | |
Merge branch 'main' of github.com:SteamDeckHomebrew/decky-loader
Diffstat (limited to 'backend/decky_loader/localplatform/localplatformmac.py')
| -rw-r--r-- | backend/decky_loader/localplatform/localplatformmac.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/backend/decky_loader/localplatform/localplatformmac.py b/backend/decky_loader/localplatform/localplatformmac.py index fd31870b..fd491785 100644 --- a/backend/decky_loader/localplatform/localplatformmac.py +++ b/backend/decky_loader/localplatform/localplatformmac.py @@ -1,10 +1,12 @@ from ..enums import UserType -import os from . import localplatformlinux -# this should be public +# NOTE: localplatformlinux has these private functions that get used in helpers.py +def _get_user_id() -> int: # pyright: ignore[reportUnusedFunction] + return localplatformlinux._get_user_id() # pyright: ignore[reportPrivateUsage] + def _get_effective_user_id() -> int: # pyright: ignore[reportUnusedFunction] - return os.geteuid() + return localplatformlinux._get_effective_user_id() # pyright: ignore[reportPrivateUsage] def chown(path : str, user : UserType = UserType.HOST_USER, recursive : bool = True) -> bool: return localplatformlinux.chown(path, user, recursive) @@ -43,7 +45,7 @@ def get_username() -> str: return localplatformlinux.get_username() def get_privileged_path() -> str: - '''On Mac, privileged_path is equal to unprivileged_path''' + # On Mac, privileged_path is equal to unprivileged_path return get_unprivileged_path() def get_unprivileged_path() -> str: |
