Benjamin M. Schwartz
2008-Apr-10 15:39 UTC
[Wine] Generating a properly configured Wine installation
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear Wine users, I am attempting to run Wine inside Sugar, the OLPC GUI environment. I have managed to learn how to run wine from a nonstandard install prefix. I am now trying to generate a correctly customized .wine/ automatically. For example, I wish to set the DPI to 160 before any programs are run. I also wish to set the USERPROFILE setting to something not based on the UNIX username. How can I perform automated customization of .wine before launching anything in Wine? Where are the settings for DPI and USERPROFILE stored? Thank you, Ben -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH/jTAUJT6e6HFtqQRAqZJAJ4hz8LFsrFjPdXxZL3GmIFct9UPEQCfZvbv vLHu9IIdcMfX1OYLn4LBWKE=lmEJ -----END PGP SIGNATURE-----
Austin English
2008-Apr-10 15:43 UTC
[Wine] Generating a properly configured Wine installation
On Thu, Apr 10, 2008 at 10:39 AM, Benjamin M. Schwartz <bmschwar at fas.harvard.edu> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Dear Wine users, > > I am attempting to run Wine inside Sugar, the OLPC GUI environment. I > have managed to learn how to run wine from a nonstandard install prefix. > I am now trying to generate a correctly customized .wine/ automatically. > For example, I wish to set the DPI to 160 before any programs are run. I > also wish to set the USERPROFILE setting to something not based on the > UNIX username. > > How can I perform automated customization of .wine before launching > anything in Wine? Where are the settings for DPI and USERPROFILE stored? > > Thank you, > Ben > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFH/jTAUJT6e6HFtqQRAqZJAJ4hz8LFsrFjPdXxZL3GmIFct9UPEQCfZvbv > vLHu9IIdcMfX1OYLn4LBWKE> =lmEJ > -----END PGP SIGNATURE----- > >You'd have to custom compile wine and edit those settings in tools/wine.inf before compiling.
On Thu, Apr 10, 2008 at 9:35 AM, Benjamin M. Schwartz <bmschwar at fas.harvard.edu> wrote:> Austin English wrote: > | You could run wineprefixcreate, then use a shell script to edit > | ~/.wine/user.reg & ~/.wine/system.reg. > > I have been storing "good" copies of these two files, and using a shell > script to copy them into the appropriate location. Unfortunately, this > does not seem to have the desired effect. For example, if I > > use winecfg to set the DPI to 160, > exit wine, > back up user.reg and system.reg, > run wineprefixcreate, > copy user.reg and system.reg back into ~/.wine/, > and start a new program, > > the new program starts at 96 DPI again. > > Clearly I am doing something wrong.Two suggestions. 1. If you must modify user.reg and system.reg by hand, make sure that wineserver has shut down first, e.g. wineserver -w. 2. Rather than modifying those files by hand, use regedit to do it. See http://kegel.com/wine/winetricks for an example of how to script this. - Dan
Austin English
2008-Apr-10 17:20 UTC
[Wine] Generating a properly configured Wine installation
On Thu, Apr 10, 2008 at 11:35 AM, Benjamin M. Schwartz <bmschwar at fas.harvard.edu> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Austin English wrote: > | You could run wineprefixcreate, then use a shell script to edit > | ~/.wine/user.reg & ~/.wine/system.reg. > > I have been storing "good" copies of these two files, and using a shell > script to copy them into the appropriate location. Unfortunately, this > does not seem to have the desired effect. For example, if I > > use winecfg to set the DPI to 160, > exit wine, > back up user.reg and system.reg, > run wineprefixcreate, > copy user.reg and system.reg back into ~/.wine/, > and start a new program, > > the new program starts at 96 DPI again. > > Clearly I am doing something wrong. Could this be related to the > USERPROFILE setting? > > I am also surprised that there is no Ntuser.dat. > > > - --Ben > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFH/kHKUJT6e6HFtqQRAokzAJ9SXSSXUfe0Cy8X+8CUTab8r6zSbQCfc53/ > 5ytkJz72la8AcrYvKBlrtJk> =4gZl > -----END PGP SIGNATURE----- >Try editing /usr/share/wine/wine.inf (may be different for your distribution). I just tested with a few settings, and new wine prefixes made take that as the default.