Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support symlink of current unix username to steamuser #21

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

R1kaB3rN
Copy link
Member

@R1kaB3rN R1kaB3rN commented Feb 9, 2024

Closes #15

Supports the creation of a symbolic link of the current user to the steamuser directory or vice versa a la Lutris. In all other cases, we simply do nothing and continue.

cc @loathingKernel

gamelauncher.py Outdated Show resolved Hide resolved
gamelauncher.py Outdated Show resolved Hide resolved
@R1kaB3rN R1kaB3rN closed this Feb 13, 2024
@R1kaB3rN R1kaB3rN reopened this Feb 13, 2024
R1kaB3rN added a commit to R1kaB3rN/ULWGL-launcher that referenced this pull request Feb 13, 2024

Verified

This commit was signed with the committer’s verified signature.
neesjanvaneck Nees Jan van Eck
- Rather than a filesystem path or environment variables, determine the user via the password database before creating a symbolic link to the steamuser directory -- this is how WINE does it

- See https://github.com/wine-mirror/wine/blob/master/dlls/ntdll/unix/loader.c#L384

- Related to Open-Wine-Components#21 (comment)
@R1kaB3rN R1kaB3rN marked this pull request as ready for review February 22, 2024 07:23
- Instead of filesystem paths or the $USER environment variable, prefer using the password database when acquire user information
- For new prefixes, a symbolic link is created of the system user to the steamuser directory or vice versa if one of them exists. In the case for new prefixes and for prefixes without a user symbolic link, the name of the link will be determined by the password database.

- Related to Open-Wine-Components#21 (comment)
@R1kaB3rN R1kaB3rN merged commit 2610564 into Open-Wine-Components:main Feb 26, 2024
3 checks passed
@R1kaB3rN R1kaB3rN deleted the steamuser branch March 9, 2024 21:50
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.

Symlinking current unix username to steamuser
2 participants