mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 04:51:58 +00:00
Merge commit from fork
* fix incorrect permissions on plugin directories * chown plugin dirs too * fix the stupid * cleanup useless comments
This commit is contained in:
@@ -181,7 +181,8 @@ def get_user_group_id() -> int:
|
||||
|
||||
# Get the default home path unless a user is specified
|
||||
def get_home_path(username: str | None = None) -> str:
|
||||
return localplatform.get_home_path(UserType.ROOT if username == "root" else UserType.HOST_USER)
|
||||
# TODO hardcoded root is kinda a hack
|
||||
return localplatform.get_home_path(UserType.EFFECTIVE_USER if username == "root" else UserType.HOST_USER)
|
||||
|
||||
async def is_systemd_unit_active(unit_name: str) -> bool:
|
||||
return await localplatform.service_active(unit_name)
|
||||
|
||||
Reference in New Issue
Block a user