This commit is contained in:
Sebastian Wick 2025-06-16 00:08:24 +08:00 committed by GitHub
commit e5eda45c0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -547,6 +547,7 @@ func GetRuntimeDirectory(targetUser *user.User) (string, error) {
if uid == 0 {
runtimeDirectory = "/run"
} else {
EnsureXdgRuntimeDirIsSet(uid)
runtimeDirectory = os.Getenv("XDG_RUNTIME_DIR")
}