move temp files directory?
move temp files directory?
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?
move temp files directory?
On Sun, 2012-01-22 at 15:35 -0600, tigerdog wrote:
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
The default is: WINEPREFIX="$HOME/.wine"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?
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
Re: move temp files directory?
He meant to change the directory that wine uses for temporary files, not the prefix, I think.Martin Gregorie wrote:On Sun, 2012-01-22 at 15:35 -0600, tigerdog wrote:The default is: WINEPREFIX="$HOME/.wine"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?
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
move temp files directory?
You can use ln to create a symbolic link, for example:I would like to point Wine at my Linux temp directory instead of
/home/username/.wine/drive_c/users/username/Temp
rm -rf /home/username/.wine/drive_c/users/username/Temp
ln -s /tmp /home/username/.wine/drive_c/users/username/Temp
Re: move temp files directory?
Correct - that's what I want to do.jorl17 wrote:He meant to change the directory that wine uses for temporary files, not the prefix, I think.
And that did it! Thank you jorl17 and L.Rahyen! Temp files now go where I want. I appreciate the help!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
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
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
I'm trying to do the same with /tmp, using the following:
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.
Code: Select all
mv /tmp /mnt/new/location/tmp
ln -s /mnt/new/location/tmp /tmp
"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.
For system things like /tmp, you kind of need to understand
the system better.
http://wiki.openwrt.org/doc/techref/process.boot describes how
/tmp is futzed with on one small linux.
the system better.
http://wiki.openwrt.org/doc/techref/process.boot describes how
/tmp is futzed with on one small linux.
rc.local Did Not Work
/root/Startup/README.txt says:
suggestions welcomed!
so, i put the commands into rc.local. I believe it did not work Sadto execute something at bootup and prior to X desktop loading, edit /etc/rc.d/rc.local
suggestions welcomed!
This is not a Wine question. Ask your distro or a general Linux support forum.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.