WineHQ
Wine Forums

Board index » WineHQ » Wine Help » Linux




 Page 1 of 1 [ 13 posts ] 



 
Author Message
 Post Posted: Sun Jan 22, 2012 4:35 pm 
Offline
Level 1
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?


Top 
 Post 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


Top 
 Post Posted: Sun Jan 22, 2012 11:24 pm 
Offline
Level 5
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.


Top 
 Post Posted: Sun Jan 22, 2012 11:45 pm 
Offline
Moderator
Moderator
User avatar

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


Top 
 Post Posted: Mon Jan 23, 2012 1:29 am 
Offline
Level 1
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!


Top 
 Post subject:
 Post Posted: Sun Jul 01, 2012 1:08 pm 
Offline
Level 1
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


Top 
 Post subject:
 Post Posted: Sun Jul 01, 2012 10:38 pm 
Offline
Level 8
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.


Top 
 Post subject:
 Post Posted: Sun Jul 01, 2012 10:59 pm 
Offline
Level 1
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.


Top 
 Post subject:
 Post Posted: Sun Jul 01, 2012 11:51 pm 
Offline
Moderator
Moderator
User avatar

Joined: Wed May 14, 2008 11:44 am
Posts: 1128
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.


Top 
 Post subject:
 Post Posted: Mon Jul 02, 2012 12:20 am 
Offline
Level 1
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.


Top 
 Post subject: rc.local Did Not Work
 Post Posted: Mon Jul 02, 2012 12:35 am 
Offline
Level 1
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!


Top 
 Post subject:
 Post Posted: Mon Jul 02, 2012 12:46 am 
Offline
Level 1
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.


Top 
 Post subject:
 Post Posted: Mon Jul 02, 2012 8:22 am 
Offline
Moderator
Moderator
User avatar

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.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 13 posts ] 




Board index » WineHQ » Wine Help » Linux


Who is online

Users browsing this forum: Bing [Bot] and 3 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: