Faking/changing the username for Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Post Reply
Fierelier
Newbie
Newbie
Posts: 1
Joined: Sun Sep 22, 2019 12:03 am

Faking/changing the username for Wine

Post by Fierelier » Sun Sep 22, 2019 12:09 am

Hey, everyone!

I fell in love with the idea of using wine-prefixes portably, which I managed to do mostly well, by setting $HOME accordingly. However, one big issue is that the wine-environment always uses the current host's username. I've tried setting $USER and wrapping whoami, which unfortunately resulted in nothing. This has been a little project of mine, and it's being halted by just this little problem.

Is there any possible way to force wine to use a certain username, preferably without creating a new user and playing around with permissions and all that? I'd be thankful.

Post Reply