WINE cannot create a window

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Bryan Baldwin

WINE cannot create a window

Post by Bryan Baldwin »

Hi all,

I am using WINE that I compiled in a 32bit chroot environment in 64bit
Archlinux. Following the guide located at:

http://wiki.archlinux.org/index.php/Ins ... _in_Arch64

I created the chroot environment, installed 32bit versions of the WINE
dependencies, and accessed WINE in the 32bit chroot from the 64bit
environment with schroot. Everything works well except when I attempt to
launch a program with WINE, I get these errors:

No protocol specified
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set
correctly.

When echoed from the terminal DISPLAY = :0.0

I'm sure I'm missing something simple, but I'm not sure what it is. It
just seems like commands launched from the chroot cannot connect to X.


Bryan
Bryan Baldwin

WINE cannot create a window

Post by Bryan Baldwin »

On Mon, 2010-07-05 at 12:21 +1200, Bryan Baldwin wrote:
Hi all,

I am using WINE that I compiled in a 32bit chroot environment in 64bit
Archlinux. Following the guide located at:

http://wiki.archlinux.org/index.php/Ins ... _in_Arch64

I created the chroot environment, installed 32bit versions of the WINE
dependencies, and accessed WINE in the 32bit chroot from the 64bit
environment with schroot. Everything works well except when I attempt to
launch a program with WINE, I get these errors:

No protocol specified
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set
correctly.

When echoed from the terminal DISPLAY = :0.0

I'm sure I'm missing something simple, but I'm not sure what it is. It
just seems like commands launched from the chroot cannot connect to X.


Bryan
Very recent development:

I added /var/run to the list of host system directories that are mounted
in the change root. The rationale behind this configuration is that it
is the directory where the X session perms database is stored at runtime
in Archlinux. After mounting /var/run in the chroot, I am able to run
WINE programs perfectly, but only if I am *in* the chroot. schroot
launch produces the same errors.

As a speculation: perhaps the schroot failure is caused because the
chroot "user", although sharing the same name, groups, uid's and gid's
as my 64bit user, is not seen as "logged in" by the system when schroot
launches the chroot WINE. Still looking into this one, any helpful
pointers are welcome. I will post any solution, if discovered, both here
and on the Archlinux wiki.


Bryan
Locked