Skip to content

Commit

Permalink
Merge pull request #7 from swick/runtime-dir
Browse files Browse the repository at this point in the history
pkg/utils: find the runtime directory with missing XDG_RUNTIME_DIR
  • Loading branch information
akdev1l authored Aug 19, 2022
2 parents 1e9f356 + 3f43c04 commit 031de17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ func GetRuntimeDirectory(targetUser *user.User) (string, error) {
if uid == 0 {
runtimeDirectory = "/run"
} else {
EnsureXdgRuntimeDirIsSet(uid)
runtimeDirectory = os.Getenv("XDG_RUNTIME_DIR")
}

Expand Down

0 comments on commit 031de17

Please sign in to comment.