Does it matter where you run a Windows program from?

Questions about Wine on Linux
Post Reply
shag00
Level 2
Level 2
Posts: 33
Joined: Mon Sep 11, 2017 11:04 pm

Does it matter where you run a Windows program from?

Post by shag00 » Wed Aug 14, 2019 5:50 am

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: 12688
Joined: Tue Mar 25, 2008 10:30 pm

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

Post by dimesio » Wed Aug 14, 2019 6:08 am

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: 33
Joined: Mon Sep 11, 2017 11:04 pm

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

Post by shag00 » Wed Aug 14, 2019 8:25 pm

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: 33
Joined: Mon Sep 11, 2017 11:04 pm

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

Post by shag00 » Thu Aug 22, 2019 6:38 am

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?


Post Reply