Launch wine with different user

Questions about Wine on Linux
Locked
wine4work
Level 2
Level 2
Posts: 12
Joined: Tue Mar 28, 2023 3:26 am

Launch wine with different user

Post by wine4work »

Hi, just wondered if there is actually a huge difference in launching wine as a normal user or root? The outputs i'm getting are different from one launch and the other.
I know this makes a different prefix due to being a different users, but when working with root i am able to access the regedit and read the properties while on a normal user i get this error.

Code: Select all

[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Error loading configuration.
Just for less troubleshooting and my sanety.. Should i stick with launching as root?
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: Launch wine with different user

Post by invisible kid »

Someone who knows will come around, but if you wanted me to test something I could test if mine gives the same error. If it was me, I would rather run as a regular user, but if/when it's crunch time and you just need it to work I would just run as root and as you said, if it's supposed to work this way, then that's that.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Launch wine with different user

Post by jkfloris »

but when working with root i am able to access the regedit and read the properties while on a normal user i get this error.
Probably the .reg files in ~/.wine no longer have the correct read and write permissions.
Make sure the .reg files can be read and written by the user. (chmod 644)

https://wiki.winehq.org/FAQ#Should_I_ru ... as_root.3F
Locked