~raqbit


#40 wayland: wl_display_connect failed - Cannot get this to run! 1 year, 4 months ago

Comment by ~raqbit on ~eliasnaur/gio

Yes, The X11 version runs fine.

$ echo "\"$WAYLAND_DISPLAY\"-\"$WAYLAND_SOCKET\""
"wayland-0"-""

#40 wayland: wl_display_connect failed - Cannot get this to run! 1 year, 4 months ago

Comment by ~raqbit on ~eliasnaur/gio

I'm not sure if it's grabbing the go-get'd version of gio, as it says downloading when using the run command.

$  go clean --modcache
$ ls $GOPATH/pkg/mod
ls: cannot access '<$GOPATH>/pkg/mod': No such file or directory

$ go get gioui.org@ccbcbdbfbd4f3aa4c01c36566ea48b118730242f
go: finding gioui.org ccbcbdbfbd4f3aa4c01c36566ea48b118730242f
go: downloading gioui.org v0.0.0-20200103103112-ccbcbdbfbd4f
go: extracting gioui.org v0.0.0-20200103103112-ccbcbdbfbd4f

$ go run -tags nox11 gioui.org/example/hello               
go: downloading gioui.org/example v0.0.0-20200103103112-ccbcbdbfbd4f
go: extracting gioui.org/example v0.0.0-20200103103112-ccbcbdbfbd4f
go: downloading golang.org/x/image v0.0.0-20190802002840-cff245a6509b
go: downloading golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3
go: extracting golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3
go: extracting golang.org/x/image v0.0.0-20190802002840-cff245a6509b
go: downloading golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
go: downloading golang.org/x/text v0.3.0
go: extracting golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
go: extracting golang.org/x/text v0.3.0
go: finding gioui.org/example v0.0.0-20200103103112-ccbcbdbfbd4f
go: finding golang.org/x/image v0.0.0-20190802002840-cff245a6509b
go: finding golang.org/x/text v0.3.0
go: finding golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3
go: finding golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a
2020/01/03 22:01:33 wayland: wl_display_connect failed: no such file or directory
exit status 1

#40 wayland: wl_display_connect failed - Cannot get this to run! 1 year, 4 months ago

Comment by ~raqbit on ~eliasnaur/gio

Hi, I cannot run this either while running in a Gnome Wayland session.

$ loginctl show-session 2 | grep Type
Type=wayland
$go run -tags nox11 gioui.org/example/hello
2020/01/01 19:41:03 wayland: wl_display_connect failed
exit status 1

System details

go version go1.13.5 linux/amd64
Ubuntu 19.10