Gtk: cannot open display error

Boyan Ding stu_dby at 126.com
Sat Aug 23 20:06:47 PDT 2014


Hi,

Google chrome (and chromium) doesn't have native wayland support (there
is ozone for wayland but not official yet) at present so if you want to
use it in wayland environment, you need Xwayland.

You have to install weston >= 1.5.0 and enable xwayland in xorg-server
1.16.0 (refer to [1], git version not recommended because xwayland now
is affected by an outstanding bug [2]).

I can launch chrome successfully on my machine but I have to warn that
there are still some bugs and the user experience may not be smooth.

Regards,
Boyan Ding

[1] http://wayland.freedesktop.org/xserver.html
[2] https://bugs.freedesktop.org/show_bug.cgi?id=81800

On Sat, 2014-08-23 at 22:44 -0400, Hongze Zhao wrote:
> Hi All,
> 
> 
> Sorry for noob question again.
> 
> 
> I am running weston-launch in a tty, which I suppose should launch a
> weston compositor outside X.
> In the desktop showed, I can launch weston-terminal and other sample
> programs listed in the end
> of http://wayland.freedesktop.org/building.html.
> 
> 
> However, nothing happens after I clicked the chrome icon in the upper
> left corner. In the terminal after I executed "google-chrome", it
> says: 
> ERROR: browser main loop.cc(209)] Gtk: cannot open display:
> 
> 
> 
> Could anyone give me some hints to solve this problem? I guess I
> missed setting some environment variables?
> 
> 
> Thanks,
> Hongze
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel





More information about the wayland-devel mailing list