Skip to content

fix: resolve current account home directory - #233

Open
Max-Sum wants to merge 1 commit into
PlayCover:masterfrom
Max-Sum:fix-user-dir
Open

fix: resolve current account home directory#233
Max-Sum wants to merge 1 commit into
PlayCover:masterfrom
Max-Sum:fix-user-dir

Conversation

@Max-Sum

@Max-Sum Max-Sum commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

NSHomeDirectoryForUser could return a container path instead of user directory.
Use getpwuid_r(getuid()) instead.

And also fix the hard-coded path in keymapping.

Just tried building with the latest source code, but NSHomeDirectoryForUser(userName) doesn’t seem to be working.

It returns /Users/$USER/Library/Containers/{App_Bundle_ID}/Data instead of /Users/$USER.

Originally posted by @viatearz in #221 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant