Re: Is it possible to enable a register setting via command line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2010-07-18 at 10:11 -0500, yossarianuk wrote:
> Also - for Martin Gregorie's idea - do I need to compile wine with new
> prefix or just launch wine with --prefix=/home/wine2 (for example)
> 
Not quite. It should be like this:

WINEPREFIX=wine2; wine myapp

However, if you're going to run the wine app from a wrapper script, 
which is often more convenient for something that will be run a lot, 
this is probably better (everything between the start/end lines is the 
script:

================start of my script======================
#!/bin/bash

export WINEPREFIX=wine2
cd $WINEPREFIX/path/to/the/exe
wine myapp $*

================end of my script======================

Of course the script must be made executable:

	chmod u+x myscript

The $* idiom passes all the script's command line arguments to the app,
so you can run it as:

	myapp arg1 arg2 "arg3 is a String with spaces"

Martin






[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux