itchio / butler

🎩 Command-line itch.io helper
MIT License
745 stars 52 forks source link

sandbox: user profile loading after creation fails on windows #209

Open glenfletcher opened 4 years ago

glenfletcher commented 4 years ago

I was unable to use sandboxing through the itch app. I traced the problem to the following command (run as admin in PowerShell, I used the full path from the error log from the itch app, sanitized for privacy reasons):

%PATH_TO_ITCH%\broth\butler\versions\15.17.0\butler.exe fuji setup
∙ Generated username (itch-player-%SALT%)
∙ Generated password (%PASSWORD%)
∙ Adding user...
∙ Removing from Users group (so it doesn't show up as a login option)...
∙ Loading profile for the first time (to create some directories)...
Access is denied.

I after investigating the source for butler I got the sandbox to work by manually generating the profile directory using runas /user:itch-player-%SALT% cmd then entering the password Butler generated i.e. the value of %PASSWORD% when asked.

I then added the two keys to the my registry manually i.e. username and password to SOFTWARE\itch\Sandbox

After doing this I was able to run a game in the sandbox from the itch app.