Re: How can wine be available for all users?

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

 



I've done it this way
Created a /windows directory where i put all the WINEPREFIX created for every application i need.
Here is an example with 3 applications

/windows
/windows/remedes
/windows/remedes/drive_c
/windows/remedes/user.reg
/windows/remedes/userdef.reg
/windows/remedes/system.reg
/windows/remedes/dosdevices
/windows/lotusnotes
/windows/lotusnotes/drive_c
/windows/lotusnotes/user.reg
/windows/lotusnotes/userdef.reg
/windows/lotusnotes/system.reg
/windows/lotusnotes/dosdevices
/windows/teraterm
/windows/teraterm/drive_c
/windows/teraterm/user.reg
/windows/teraterm/userdef.reg
/windows/teraterm/system.reg
/windows/teraterm/dosdevices


Then I've made a launch script for every application 
Here's the script i use for lotusnotes

winapp=lotusnotes
if [ ! -d $HOME/.windows/$winapp ]; then
    mkdir -p $HOME/.windows/$winapp
    cd $HOME/.windows/$winapp
    ln -s /windows/$winapp/dosdevices
    ln -s /windows/$winapp/drive_c
    ln -s /windows/$winapp/system.reg
    cp  /windows/$winapp/user.reg .
    ln -s /windows/$winapp/userdef.reg
fi
export WINEPREFIX=$HOME/.windows/$winapp
wine 'c:\programmi\lotus\notes\notes.exe' 2> /dev/null


As you can see I use a ~/.windows to link all the necessary files ad directories for each user.
So i can still have a ~/.wine for each user's use 

Disadvantages: security, under /windows each dir has to be 777 and disk space waste
Advantages: every user still has his own settings.

Hope this helps






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

  Powered by Linux