Re: Individual Wineprefixes

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

 



On Wed, Jun 24, 2009 at 6:06 AM, James Huk<huk256@xxxxxxxxx> wrote:
> 2009/6/24 c_andy_man <wineforum-user@xxxxxxxxxx>
>
>> 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


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

  Powered by Linux