Waht is /usr/bin/wine C:\\windows\\command\\start.exe /Unix ?

Questions about Wine on Linux
Locked
User avatar
succodifrutta
Level 2
Level 2
Posts: 21
Joined: Sat Mar 28, 2020 5:26 am

Waht is /usr/bin/wine C:\\windows\\command\\start.exe /Unix ?

Post by succodifrutta »

Hi to all WINE guys!
I'm about a n00b in WINE world...

I was wondering about the implications and usage of the command as well as in this topic subject.
I'm asking for clarification: why WINE use that??
I always learn:

Code: Select all

wine program.exe

  1. installing

    Code: Select all

    $ WINEPREFIX=/myprefix/path wine /path/program_installer.exe
    or

    Code: Select all

    extracting the program_installer.zip into /myprefix/path/drive_c/program/
    OK
  2. ---
  3. executing (my way :lol: )

    Code: Select all

    $ WINEPREFIX=/myprefix/path wine /myprefix/path/drive_c/Program\ Files/program/program.exe
    some programs work, sometimes other programs crash on startup, sometimes there are programs that won't launch at all! :shock:
  4. ---
  5. executing (WINE way... Why?)

    Code: Select all

    env WINEPREFIX=/myprefix/path /usr/bin/wine C:\\windows\\command\\start.exe /Unix /myprefix/path/dosdevices/c:/something/{program.lnk or program.exe}
    always works! :D

Please explain, thanks!
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Waht is /usr/bin/wine C:\\windows\\command\\start.exe /Unix ?

Post by jkfloris »

From the WineHQ Wiki:
You need to use wine start if you specify a full path to the .exe, because that allows Wine to set the working directory for the program if it needs it.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Waht is /usr/bin/wine C:\\windows\\command\\start.exe /Unix ?

Post by Bob Wya »

@succodifrutta

See: WineHQ Wiki: Start.

Bob
User avatar
succodifrutta
Level 2
Level 2
Posts: 21
Joined: Sat Mar 28, 2020 5:26 am

Re: Waht is /usr/bin/wine C:\\windows\\command\\start.exe /Unix ?

Post by succodifrutta »

jkfloris wrote: Sat Mar 28, 2020 10:31 am From the WineHQ Wiki:
You need to use wine start if you specify a full path to the .exe, because that allows Wine to set the working directory for the program if it needs it.
Gotcha, thanks! :mrgreen:
Locked