hello. I am trying to install an exe-file in the Program-Path of an individual Wine-Prefix. This exe-file reads an Inifile, which is in the same Directory. When I use Winefile to open the .exe, the inifile is read correctly. When I use it in a .desktop file with the order below, it does not work. Code: env WINEPREFIX "/opt/WPrefix" wine "C:\Program Files\Test\test.exe" What is the problem and what can I do?
c_andy_man wrote:> hello. > > I am trying to install an exe-file in the Program-Path of an individual Wine-Prefix. This exe-file reads an Inifile, which is in the same Directory. > > When I use Winefile to open the .exe, the inifile is read correctly. > When I use it in a .desktop file with the order below, it does not work. > > Code: > env WINEPREFIX "/opt/WPrefix" wine "C:\Program Files\Test\test.exe" > > > What is the problem and what can I do?Should be: Code: env WINEPREFIX="/opt/WPrefix" wine "C:\Program Files\Test\test.exe"
? There is no difference! I just changed the .exe so that the @WorkingDir gets displayed in a messagebox. That leads to "C:\Program Files\Test\" when i use it via winedir and to Z:\root when i use it from the shortcut. Somehow the path where the exe is executed is not the same.
c_andy_man wrote:> ? > > There is no difference to my code!The difference is WINEPREFIX="/opt/WPrefix" instead of WINEPREFIX "/opt/WPrefix"... See? An = instead of a space.
Okay. so workingdir is simply wrong because it shows the standard user-directory... The when the exe opens the file is by using fileRead("inifile.ini",0) without a path => in the actual directory. This works on windows, no matter where i put the two files. But in Linux/Wine, when the inifile is in the same directory as the exe, the file will not be read.
Possibly Parallel Threads
- Puppetdb module installation error -
- hiera / create_resources / define
- puppet openstack - missing quantum module
- [PATCH / RFC] Handle --packager-config in zypp_rpm
- PuppetDB Install error: "::postgresql::validate_db_connection" at /etc/puppet/modules/puppetdb/manifests/server/validate_db.pp:62