| Author |
Message |
|
tigerdog
|
Posted: Sun Jan 22, 2012 4:35 pm |
|
 |
| Level 1 |
 |
|
|
Joined: Sun Jan 22, 2012 4:01 pm Posts: 8 Location: United States
|
|
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
|
Posted: Sun Jan 22, 2012 6:46 pm |
|
|
|
On Sun, 2012-01-22 at 15:35 -0600, tigerdog wrote:
Quote: 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
|
Posted: Sun Jan 22, 2012 11:24 pm |
|
 |
| Level 5 |
 |
|
|
Joined: Mon Jul 28, 2008 6:44 pm Posts: 364 Location: Coimbra, Portugal
|
Martin Gregorie wrote: On Sun, 2012-01-22 at 15:35 -0600, tigerdog wrote: Quote: 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
He meant to change the directory that wine uses for temporary files, not the prefix, I think.
|
|
 |
|
 |
|
L. Rahyen
|
Posted: Sun Jan 22, 2012 11:45 pm |
|
Joined: Fri Feb 22, 2008 9:13 pm Posts: 204
|
Quote: 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
|
Posted: Mon Jan 23, 2012 1:29 am |
|
 |
| Level 1 |
 |
|
|
Joined: Sun Jan 22, 2012 4:01 pm Posts: 8 Location: United States
|
jorl17 wrote: 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. L. Rahyen wrote: 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
And that did it! Thank you jorl17 and L.Rahyen! Temp files now go where I want. I appreciate the help!
|
|
 |
|
 |
|
johnywhy
|
Posted: Sun Jul 01, 2012 1:08 pm |
|
 |
| Level 1 |
 |
|
|
Joined: Tue Mar 24, 2009 4:40 pm Posts: 9
|
|
this helps me too.
a linux noob, i think /tmp is the directory we are redirecting to, so if i want to redirect to a mounted hard-disk, would i use something like the following?
rm -rf /home/username/.wine/drive_c/users/username/Temp
ln -s /mnt/sda1/winetemp /home/username/.wine/drive_c/users/username/Temp
and, while we're at it:
rm -rf /root/.wine/drive_c/windows/temp
ln -s /mnt/sda1/winetemp /root/.wine/drive_c/windows/temp
thanks
|
|
 |
|
 |
|
doh123
|
Posted: Sun Jul 01, 2012 10:38 pm |
|
 |
| Level 8 |
 |
|
|
Joined: Tue Jul 14, 2009 1:21 pm Posts: 1118
|
|
symlink is probably the safest way to go, but I do recall one of the .reg files holding that information as well you could probably just edit.
|
|
 |
|
 |
|
johnywhy
|
Posted: Sun Jul 01, 2012 10:59 pm |
|
 |
| Level 1 |
 |
|
|
Joined: Tue Mar 24, 2009 4:40 pm Posts: 9
|
I'm trying to do the same with /tmp, using the following:
Code: mv /tmp /mnt/new/location/tmp
ln -s /mnt/new/location/tmp /tmp
It fails with either an "in use" error, or when tmp is not in-use, i get:
"inter-device move failed... unable to remove target... Is a directory"
Have tried by exiting x-windows to command prompt, or by mouse-clicks. Same error.
Using saluki puppy Linux, an ubuntu variant. In puppy, /tmp is inaccessible when the OS is not loaded-- it's inside a 4fs file, which I believe is a kind of squash file. So I think the above task must somehow be done while the OS is running.
Note, puppy runs as root user by default.
Suggestions appreciated.
|
|
 |
|
 |
|
DanKegel
|
Posted: Sun Jul 01, 2012 11:51 pm |
|
Joined: Wed May 14, 2008 11:44 am Posts: 1128
|
|
 |
|
 |
|
johnywhy
|
Posted: Mon Jul 02, 2012 12:20 am |
|
 |
| Level 1 |
 |
|
|
Joined: Tue Mar 24, 2009 4:40 pm Posts: 9
|
|
thanks. I could not find the futzing with tmp that you mentioned, but i'm thinking i should put the commands into a bash script that executes during boot, after /tmp is created, but before anything is using it.
However, not quite sure (translation: no idea) where to put the script. noob thoughts.
|
|
 |
|
 |
|
johnywhy
|
Posted: Mon Jul 02, 2012 12:35 am |
|
 |
| Level 1 |
 |
|
|
Joined: Tue Mar 24, 2009 4:40 pm Posts: 9
|
/root/Startup/README.txt says:
Quote: to execute something at bootup and prior to X desktop loading, edit /etc/rc.d/rc.local
so, i put the commands into rc.local. I believe it did not work Sad
suggestions welcomed!
|
|
 |
|
 |
|
johnywhy
|
Posted: Mon Jul 02, 2012 12:46 am |
|
 |
| Level 1 |
 |
|
|
Joined: Tue Mar 24, 2009 4:40 pm Posts: 9
|
|
during the boot, before xWindows starts, i saw the message "cannot move" or "cannot remove" flash by.
|
|
 |
|
 |
|
dimesio
|
Posted: Mon Jul 02, 2012 8:22 am |
|
Joined: Tue Mar 25, 2008 10:30 pm Posts: 6466
|
johnywhy wrote: thanks. I could not find the futzing with tmp that you mentioned, but i'm thinking i should put the commands into a bash script that executes during boot, after /tmp is created, but before anything is using it.
However, not quite sure (translation: no idea) where to put the script. noob thoughts.
This is not a Wine question. Ask your distro or a general Linux support forum.
|
|
 |
|
 |
|