Hello, I am looking for a way to create an individual wine rpm of the actual src.rpm. My goal is a new winepfrefix, that is created when a user is logging in, that contains additional win-programs. But I did not find the path in the wine...tar.gz file, where the wineprefix is located. can someone help me? Is this even possible? Because that would be an easy way to supply a programm for all users individually.
A WINEPREFIX itself is a different '.wine' directory and you create a new prefix by setting the WINEPREFIX environment variable. E.g. WINEPREFIX=.wine-notepad wine notepad would create a new prefix /home/user/.wine-notepad for notepad. It would also be possible to have multiple wine installations but for that you need to play with other environment variables like WINEDLLPATH, WINELOADER and WINESERVER next to things like PATH.
I know that wine creates a prefix for every user as son as he executes "wine bla.exe". That is $HOME/.wine. But right now i start this prefix with a wine executable, that is in an individual path and a wineprefix, that is in an individual path. That works quite okay. But as with a standard wineinstallation and wineprefix. where you can installe windows-software on Userbasis, i want wine to create a prefix, that has already software installed. My actual workaround is that i take one wineprefix i created and overwrite the users wineprefix as soon as he executes a start-script. I think think this is not very elegant.
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/)
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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.winehq.org/pipermail/wine-users/attachments/20090624/2c8266c4/attachment.htm>
On Wed, Jun 24, 2009 at 1:10 PM, Gert van den Berg<wine-users at mohag.net> wrote:> On Wed, Jun 24, 2009 at 17:01, Austin English wrote: >> 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 > > (I know it is only a sample that was not tested, but anyway...) > > If the user do not own the files, the chown would fail. The copy > should set the ownership (because the user is probably unable to > create files owned by another user) > > tar or cp --no-preserve=ownership might if the ownership information > do survive the copy.... > > if the chown does work `whoami` can be replaced with `id -un`:`id -gn` > to change the group as well.To list as well: Of course, good call. -- -Austin