lmi
[Top][All Lists]
Advanced

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

[lmi] Creating a "wine prefix" [Was: Creating a chroot for cross-buildin


From: Greg Chicares
Subject: [lmi] Creating a "wine prefix" [Was: Creating a chroot for cross-building lmi]
Date: Thu, 6 Oct 2016 15:05:35 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.2.0

On 2016-09-26 12:18, Greg Chicares wrote:
> On 2016-09-26 01:35, Greg Chicares wrote:
[...in a newly-created chroot...]
> $winecfg
> cat: /home/greg/.wine/system.reg: No such file or directory
> /usr/bin/winecfg: 32: exec: winecfg.exe: not found
> 
> There isn't even a '.wine' subdirectory (they call this a
> "wine prefix")
[...]
> Random flailing...
> 
> $wine control
> wine: created the configuration directory '/home/greg/.wine'
> wine: configuration in '/home/greg/.wine' has been updated.
> 
> ...seems to solve the problem. Now 'winecfg' works. Perhaps
>   wineboot --init
> would work as well while feeling less like a kludge.

To solve this problem more systematically:

  https://hub.docker.com/r/suchja/wine/
| There is no initialized Wine prefix in the container. Thus your first action
| in the container should be something like:
| wine wineboot --init

  
http://stackoverflow.com/questions/25226193/disable-gui-while-running-wine-setup
| env `WINEPREFIX="/home/$(whoami)/.wine" WINEARCH="win32" wine "wineboot"`
That article also suggests using 'xvfb-run' to prevent wine from even popping
up a messagebox; but it's not worth installing an extra package just for that.

However, it is worthwhile to avoid the *interactive* messagebox
  http://lists.nongnu.org/archive/html/lmi/2016-09/msg00000.html
|   Wine could not find a Mono package...see http://wiki.winehq.org/Mono
and here are some suggestions:

http://unix.stackexchange.com/questions/191608/wine-do-not-check-for-mono-installation
| WINEPREFIX=$(pwd)/my_new_prefix WINEDLLOVERRIDES=mscoree=d wineboot
["/home/$(whoami)/.wine" as above seems better]

https://wiki.archlinux.org/index.php/wine#WINEPREFIX
| env WINEPREFIX=~/.customprefix wineboot -u

After some experimenting, using
  rm -rf ~/.wine
to remove the "wine prefix" between trials, I've found that running this
command (in the chroot, as the normal non-root user):
  WINEDLLOVERRIDES=mscoree=d wine wineboot
seems to initialize 'wine' properly with no interactive messagebox.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]