Is this right - and how does it know??

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
johne53
Level 2
Level 2
Posts: 15
Joined: Thu May 01, 2008 10:22 am

Is this right - and how does it know??

Post by johne53 »

Recently I had to install Crossover Linux which is similar to (and based on) Wine. I needed to check whether my Windows app was compatible both with Wine and Crossover.

Having installed Crossover I was surprised to find that both it and Wine are using Crossover's registry. If I run Wine's regedit.exe and make some kind of change, then I run Crossover's regedit.exe, the change I just made is already available in Crossover's registry. If I examine the files (system.reg) for both apps, I find that Crossover's version has just been modified whereas Wine's hasn't changed for months.

1) Firstly, is this the expected behaviour?

2) and secondly, given that Crossover can have several registries (one for each of its 'bottles') how does Wine know which copy to use?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Is this right - and how does it know??

Post by vitamin »

johne53 wrote:2) and secondly, given that Crossover can have several registries (one for each of its 'bottles') how does Wine know which copy to use?
Wine uses $WINEPREFIX env var, and if it's not defined default is $HOME/.wine
johne53
Level 2
Level 2
Posts: 15
Joined: Thu May 01, 2008 10:22 am

Post by johne53 »

Thanks vitamin. $WINEPREFIX doesn't seem to be defined on my system but I think I've figured out what's happening. The path to Crossover's version of wine is earlier (in my path) than Wine's version. Therefore, when I double-click on regedit.exe, no matter which version of regedit I click, it gets opened by Crossover.

If I explicitly specify Wine by typing this at a command line:-

/usr/bin/wine regedit.exe

then I get the expected (i.e. wine) version of the registry.
Locked