Discussion:
[Wine] move temp files directory?
tigerdog
2012-01-22 21:35:25 UTC
Permalink
I would like to point Wine at my Linux temp directory instead of /home/username/.wine/drive_c/users/username/Temp. Is there a way to have the Wine environment variable specify a different location?
Martin Gregorie
2012-01-22 23:45:55 UTC
Permalink
Post by tigerdog
I would like to point Wine at my Linux temp directory instead
of /home/username/.wine/drive_c/users/username/Temp. Is there a way
to have the Wine environment variable specify a different location?
The default is: WINEPREFIX="$HOME/.wine"
You can change WINEPREFIX to anything you like:

export WINEPREFIX="$HOME/.wine_for_myapp"

works and so should: export WINEPREFIX="/path/to/wherever/I/want"
but an easier way to handle this is to use a wrapper script, e.g.

===============================================================
#!/bin/bash
export WINEPREFIX=/where/your/app/is"
cd $WINEPREFIX
wine myapp.exe
==============================================================


Martin
jorl17
2012-01-23 04:24:16 UTC
Permalink
Post by Martin Gregorie
Post by tigerdog
I would like to point Wine at my Linux temp directory instead
of /home/username/.wine/drive_c/users/username/Temp. Is there a way
to have the Wine environment variable specify a different location?
The default is: WINEPREFIX="$HOME/.wine"
export WINEPREFIX="$HOME/.wine_for_myapp"
works and so should: export WINEPREFIX="/path/to/wherever/I/want"
but an easier way to handle this is to use a wrapper script, e.g.
===============================================================
#!/bin/bash
export WINEPREFIX=/where/your/app/is"
cd $WINEPREFIX
wine myapp.exe
==============================================================
Martin
He meant to change the directory that wine uses for temporary files, not the prefix, I think.
L. Rahyen
2012-01-23 04:44:19 UTC
Permalink
Post by tigerdog
I would like to point Wine at my Linux temp directory instead of
/home/username/.wine/drive_c/users/username/Temp
You can use ln to create a symbolic link, for example:

rm -rf /home/username/.wine/drive_c/users/username/Temp
ln -s /tmp /home/username/.wine/drive_c/users/username/Temp
tigerdog
2012-01-23 06:29:52 UTC
Permalink
Post by jorl17
He meant to change the directory that wine uses for temporary files, not the prefix, I think.
Correct - that's what I want to do.
Post by jorl17
rm -rf /home/username/.wine/drive_c/users/username/Temp
ln -s /tmp /home/username/.wine/drive_c/users/username/Temp
And that did it! Thank you jorl17 and L.Rahyen! Temp files now go where I want. I appreciate the help!
Continue reading on narkive:
Loading...