Does it matter where you run a Windows program from?

Questions about Wine on Linux
Locked
shag00
Level 2
Level 2
Posts: 47
Joined: Mon Sep 11, 2017 11:04 pm

Does it matter where you run a Windows program from?

Post by shag00 »

Wine ver 4.13, Kubuntu ver 19.04

This code causes the program to work with no apparent issues:

Code: Select all

scottubuntu@scottubuntu:~/.winert2/drive_c/Program Files/RT2$ WINEPREFIX=~/.winert2 wine ~/.winert2/drive_c/"Program Files"/RT2/rt2.exe
while this code does not start the program and has returned an error message:

Code: Select all

scottubuntu@scottubuntu:~$ WINEPREFIX=~/.winert2 wine ~/.winert2/drive_c/"Program Files"/RT2/rt2.exe
scottubuntu@scottubuntu:~$ 002e:err:ntdll:RtlLeaveCriticalSection section 0x1123e8 is not acquired
The commands are the same, just run from different directories. Is that correct?
User avatar
dimesio
Moderator
Moderator
Posts: 13205
Joined: Tue Mar 25, 2008 10:30 pm

Re: Does it matter where you run a Windows program from?

Post by dimesio »

Yes, it matters where you run a Windows program from.
https://wiki.winehq.org/Wine_User%27s_G ... mmand_line
shag00
Level 2
Level 2
Posts: 47
Joined: Mon Sep 11, 2017 11:04 pm

Re: Does it matter where you run a Windows program from?

Post by shag00 »

Ah well, here is the solution I think I was looking for:

Code: Select all

WINEPREFIX=~/.winert2 wine start /d "C:\\Program Files\\RT2" rt2.exe
You can plonk that command in from anywhere and the program starts.
shag00
Level 2
Level 2
Posts: 47
Joined: Mon Sep 11, 2017 11:04 pm

Re: Does it matter where you run a Windows program from?

Post by shag00 »

So what actually does the WINEPREFIX command do then? Is there a writeup somewhere that explains the relationship of the .wine prefix to other prefixes that are created?
Locked