i want to change the default /home/user/.wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

i want to change the default /home/user/.wine

Post by looki »

id like to have a single wine install wich uses another folder then ~/.wine.
so i want it not to share this folder with my common wine installation.

any ideas?

thx looki
David Gerard

i want to change the default /home/user/.wine

Post by David Gerard »

2008/5/12 looki <[email protected]>:
id like to have a single wine install wich uses another folder then ~/.wine.
so i want it not to share this folder with my common wine installation.
any ideas?
You can use any number of different Wine fake-windows folders (.wine
or whatever). In fact, it's a good way to get tricky applications to
work.

Note that you need to fiddle with the command line a bit.

Doing this will set up a separate fake-Windows called .wine2 :

export WINEPREFIX=~/.wine2
wineprefixcreate

You need to make sure your apps inside .wine2 are started with
$WINEPREFIX set to .wine2 .

(An automated version of this is how Crossover does "wine bottles" to
keep apps separated.)

You don't need to do this normally - but when a particular app needs
fiddly settings, or Wine pretending to be a different version of
Windows or something, it's very useful.


- d.
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

Post by looki »

ok thx.
assuming i have different wine installations (made with ./configure --prefix=folder_version) and i now use for every wine version
WINEPREFIX=folder_version wine_version anyprogram.

do i have any intersections between the different wine installations?

my intension is to wrap a whole wine installation by a program (with a gui), so that my program and its own wine, doesnt touch the users own wine installation.

greetz looki
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

i want to change the default /home/user/.wine

Post by austin987 »

On Mon, May 12, 2008 at 3:59 PM, looki <[email protected]> wrote:
ok thx.
assuming i have different wine installations (made with ./configure --prefix=folder_version) and i now use for every wine version
WINEPREFIX=folder_version wine_version anyprogram.

do i have any intersections between the different wine installations?

my intension is to wrap a whole wine installation by a program (with a gui), so that my program and its own wine, doesnt touch the users own wine installation.

greetz looki





If you've got / mapped to a drive letter, then could interact that
way, or if you've got them both having drive H mapped to home, etc.
But their individual registry settings/fake windows drives, etc. would
all be independent.
Dan Kegel

i want to change the default /home/user/.wine

Post by Dan Kegel »

On Mon, May 12, 2008 at 1:59 PM, looki <[email protected]> wrote:
my intension is to wrap a whole wine installation by a program (with a gui),
so that my program and its own wine, doesnt touch the users own wine installation.
Should work great. That's what we do with Picasa.
I'd like to chat with you offline about this, can you send me an
email? [email protected]
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

Post by looki »

ok thats what i try to get :)
one question, when i do "make instal", wine goes to a directory. is this directory important?
i mean can i prefix it to opt/wine60 and after this copying the whole content to /home/wine, without trouble using it in another folder?

so that another guy can simply unpack it in his own folder and use it?
my program would just use the relative path to get wine, but will wine do the same?

greetz looki
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

looki wrote:ok thx.
assuming i have different wine installations (made with ./configure --prefix=folder_version) and i now use for every wine version
WINEPREFIX=folder_version wine_version anyprogram.
Wrong. WINEPREFIX points to ~/.wine directory - Wine's "configuration". Wine is not installed there. The directory you give to configure with "--prefix" is the directory Wine will be installed into on 'make install'. To use _that_ Wine installation you need to specify full path when running it. Example

Code: Select all

./configure --prefix=/opt/wine_special
make depend all install
WINEPREFIX=$HOME/special_program /opt/wine_special/bin/wine special_program.exe
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

Post by looki »

the program would do it like this

WINEPREFIX=./windows ./wine/bin/wine ./folder/aprogram.exe

and i only dont know, if this leads to problems with wine, because the . folder might differ for every user.

btw: i use wine_version sometimes with symlinks from different wine installations in /opt/wine_version/wine to /usr/local/bin/wine_version, i just didnt thought about that u cant know it.
Dan Kegel

i want to change the default /home/user/.wine

Post by Dan Kegel »

On Mon, May 12, 2008 at 2:45 PM, looki <[email protected]> wrote:
the program would do it like this

WINEPREFIX=./windows ./wine/bin/wine ./folder/aprogram.exe

and i only dont know, if this leads to problems with wine, because the . folder might differ for every user.
I think we need a HOWTO for this, it's going to become common.

WINEPREFIX should be an absolute path pointing to a subdirectory
of the user's home directory named after the product, and starting with a dot.

You should put wine into /opt/productname/wine, and your product into
/opt/productname/

Then put a symlink in /usr/bin pointing to the script in /opt/productname that
starts the app.

Go install Picasa and see how they did it.
Navicat is another app that does this; I don't think they did as nice a job,
but maybe their script is easier to read for starters. See
http://winehq.org/pipermail/wine-devel/ ... 65505.html
- Dan
Dan Kegel

i want to change the default /home/user/.wine

Post by Dan Kegel »

On Mon, May 12, 2008 at 2:17 PM, looki <[email protected]> wrote:
one question, when i do "make instal", wine goes to a directory. is this directory important?
i mean can i prefix it to opt/wine60 and after this copying the whole content to /home/wine, without trouble using it in another folder?
IMHO you should use --prefix=/opt/yourappname/wine
and never change it.

Or are you trying to let users copy the app into their home
directory and run it from there?
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

Post by looki »

yes its ment to be very simple.
just unpack the files and execute my program and enjoy.

my program then runs another self written (windows) program which can do some convenience stuff with a windows game, like running it with additional long command line arguments just by a click on a button.

the whole pack must include a patched wine0.9.44 due to regression issues with wine.
and it would be good if a user of my prog dont need to care about its own wine installation and folders and things.

greetz looki
Dan Kegel

i want to change the default /home/user/.wine

Post by Dan Kegel »

On Mon, May 12, 2008 at 4:29 PM, looki <[email protected]> wrote:
yes its ment to be very simple.
just unpack the files and execute my program and enjoy.
Then definitely look at how Navicat does it.
the whole pack must include a patched wine0.9.44 due to regression issues with wine.
Have you reported the bugs?
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

Re: i want to change the default /home/user/.wine

Post by looki »

the whole pack must include a patched wine0.9.44 due to regression issues with wine.
Have you reported the bugs?[/quote]

its about this game:
http://appdb.winehq.org/objectManager.p ... n&iId=1744
Dan Kegel

i want to change the default /home/user/.wine

Post by Dan Kegel »

On Mon, May 12, 2008 at 4:40 PM, looki <[email protected]> wrote:
You might not need to put together your custom wine, then.
I think the bug is
http://bugs.winehq.org/show_bug.cgi?id=11814
which is a dup of a bug targeted for 1.0.

Cross your fingers...
looki
Level 2
Level 2
Posts: 38
Joined: Mon Apr 21, 2008 3:20 pm

Post by looki »

wine 1.0rc1 doesnt get it, i tried it today.
but anyway the idea to this prog came to me, because there is a programm needed for playing replay files and doing other stuff with them.
as i know this only possible with command line arguments. and they are long.

on windows u get it over a context menue that opens by right clicking the replay file. of course my vision is not really needed and i could only write a simple windows prog that opens the replay files.
but i wanted to give this a try, because it makes sence to seperate one wine installation just for this game and then of course giving it to all :)
Locked