Use 2 Different user.reg Files in Shared .wine Directory?

Questions about Wine on Linux
Locked
jakfish
Level 2
Level 2
Posts: 13
Joined: Fri Jan 18, 2013 7:27 am

Use 2 Different user.reg Files in Shared .wine Directory?

Post by jakfish »

Running wine-5.13 in box86/Manjaro Arm/xfce/PinePhone, I have one edited user.reg that produces white text on a black background for Word 97. This background makes visibility difficult in HanDBase, so I use the default colors in the default user.reg. Everything is run in 32-bit and WINE is run in a box86 chroot container.

Is it possible to symlink or otherwise call one user.reg for HanDBase and the second modified user.reg for Word upon starting these two programs?

The command to start HanDBase is:

Code: Select all

sudo chroot  /home/manjaro/gaming box86 wine C:\Program Files\HanDBase4\handbasedesktop.exe
For Word 97:

Code: Select all

sudo chroot  /home/manjaro/gaming box86 wine "C:\Program Files\Microsoft Office\Office\winword.exe"
Many thanks for any suggestion.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Use 2 Different user.reg Files in Shared .wine Directory?

Post by jkfloris »

The registry is loaded when Wine is started. If you want to run both programs at the same time, you need to create two Wineprefixes.
jakfish
Level 2
Level 2
Posts: 13
Joined: Fri Jan 18, 2013 7:27 am

Re: Use 2 Different user.reg Files in Shared .wine Directory?

Post by jakfish »

Thank you, that worked.

If I may trouble you about a command/script to get into chroot directory and issue command to start program. When I script for my default wineprefix, I can successfully use:

Code: Select all

sudo chroot /home/manjaro/gaming box86 wine "C:\Program Files\HanDBase4\handbasedesktop.exe"
But now I must use this command (in chroot environment, it works):

Code: Select all

WINEPREFIX=/root/.wine-hb box86 wine "C:\Program Files\HanDBase4\handbasedesktop.exe"
However, when scripted in non-chroot environment,

Code: Select all

WINEPREFIX=/root/.wine-hb box86 
comes up as

Code: Select all

No such file or directory
Could you advise on the proper syntax?

Thanks again for your help.
jakfish
Level 2
Level 2
Posts: 13
Joined: Fri Jan 18, 2013 7:27 am

Re: Use 2 Different user.reg Files in Shared .wine Directory?

Post by jakfish »

I think I figured it out:

Code: Select all

sudo chroot /home/manjaro/gaming env WINEPREFIX=/root/.wine-hb box86 wine "C:\Program Files\HanDBase4\handbasedesktop.exe"
Thanks again.
Locked