You are not logged in.
I have made a bash script, which starts a windows program by Wine. Unfortunately the windows program can't accept parameters, but can read environment variables. So I would like to set the wine environment variable in my bash script. How can I do that?
Offline
Read https://wiki.winehq.org/Wine_User%27s_G … _arguments at the 3.5.2 point
Fan of Giorgio Moroder & Mohammad Ammax enemy
Offline
Offline
Function winepath might help, it converts /a/linux/path to D:\a\windows\path; e.g. to make irfan-view act like a linux program with "Open [a .jpg file] with" in a file-browser, or command-line like:
$ iview filename.jpg
cat ~/bin/iview
#!/bin/sh
PAR=`winepath -w "$*"`
LOC=~/.wine/drive_c/pgms/IrfanView/i_view32.exe
wine "$LOC" "$PAR"
exit 0"If you do not change direction, you may end up where you are heading." -- L.T.
Offline