[Wine] Individual Wineprefixes

Austin English austinenglish at gmail.com
Wed Jun 24 10:01:37 CDT 2009


On Wed, Jun 24, 2009 at 6:06 AM, James Huk<huk256 at gmail.com> wrote:
> 2009/6/24 c_andy_man <wineforum-user at winehq.org>
>
>> The problem is, that the wineprefix has to be a certain one with installed
>> programs. When another user logs in, a new wineprefix /home/user/.wine is
>> created. But this wineprefix is pristine, and does not contain the installed
>> Windows programms.
>> That is why i tried the way of overwriting the users wineprefix with the
>> individual wineprefix (That I store in /opt/samplewineprefix/)
>>
>>
>>
>>
>>
> I think you should be able to write some sort of script that will check if
> .wine prefix for current user exists, and if not it will simply overrite it
> with your custom prefix stored somewhere... but how to write such script I
> have no Iidea - hoefully someone with more scripting experiance can help
> you.

Please avoid html messages on wine mailing lists, it's stripped out anyway.

A script like that would be really easy, something like
#!/bin/sh
if [ -d $HOME/.wine ]
then
    echo ".wine already exists"
else
    cp -r /opt/samplewineprefix/ $HOME/.wine
    chown -R `whoami` $HOME/.wine
fi
exit 0

-- 
-Austin



More information about the wine-users mailing list