Re: [Wine]mulit user system redirecting My Documents

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 03, 2004 at 10:52:09PM -0400, michael@xxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> On Thu, Sep 02, 2004 at 12:09:08PM -0600, Jerry Buburuz wrote:
> > 
> > I allow all users to access "/usr/wine/.wine", I want to redirect 
> > "/usr/wine/.wine/fake_windows/My Documents" to a $HOME/My Documents. Is 
> > there a way I can do this? Is it as simple as adding a reg key?

Add a value "Personal" to the key 

"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders"

in each user's $HOME/.wine/user.reg with the desired "My Documents" path as data.  
You might also want to set the "Desktop", "AppData", "Favorites", and "Start Menu" 
keys...  However,  I would advise a slightly different approach:

1.  Choose a drive (for instance, P: for "personal") that will be mapped directly to 
each user's home directory.  That way,  if you decide to use samba, dosemu, lsh or 
ncpfs,  you can point it at the same directory for the "per-user home" drive.

2.

#!/bin/bash
for n in `perl -ne 'split /:/; print "$_[0] " if $_[1]>999' /etc/passwd`
do
  mkdir -p /home/$n/.wine/dosdevices
  cd /home/$n/.wine/dosdevices
  ln -s ../.. p:
  echo -n "$n's personal files" >../../.wine_label
done

3.  Instruct users to always save their files on the "P" drive.

-- 
resume at  http://www.cse.msu.edu/~lamber45/resume.htm
PGP key at http://www.cse.msu.edu/~lamber45/newmail.htm#GPGKey

_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux