Lens: Snap fail to launch with Wayland

Created on 1 Apr 2020  路  4Comments  路  Source: lensapp/lens

Describe the bug

When Linux is running wayland instead of X11, it fails to run.

To Reproduce
Steps to reproduce the behavior:

  1. Run a session with wayland
  2. snap install kontena-lens --classic
  3. kontena-lens
  4. nothing happen.

Expected behavior

It works with:

env DISABLE_WAYLAND=1 kontena-lens

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • Lens Version: 3.1.0
  • OS: Ubuntu
  • Installation method: snap

Logs:

kontena-lens:935313): Gtk-WARNING **: 12:27:24.070: cannot open display: :0

Additional context

This is because electron doesn't support native wayland and should be set to use X11 fallback.
It's linked to the commit on _electron-builder_ https://github.com/electron-userland/electron-builder/commit/2278c2a347bb9e6d00f2f59719eb784ac9857c10

arelinux bug

All 4 comments

I am having the problem on Ubuntu 19.10. However, it seems link I am using X11

$ echo $XDG_SESSION_TYPE
x11

And env DISABLE_WAYLAND=1 kontena-lens does not work for me as well.

env DISABLE_WAYLAND=1 kontena-lens solved my problem on fedora, but I would like to update the shortcut in Gnome Menu as well

I ran into this on Ubuntu 20.04.1 LTS with wayland and kontena-lens 3.6.0. With the workaround from @Richard87 the app starts fine.

Manjaro Linux

NAME="Manjaro Linux"
ID=manjaro
ID_LIKE=arch
BUILD_ID=rolling
PRETTY_NAME="Manjaro Linux"
ANSI_COLOR="32;1;24;144;200"
HOME_URL="https://manjaro.org/"
DOCUMENTATION_URL="https://wiki.manjaro.org/"
SUPPORT_URL="https://manjaro.org/"
BUG_REPORT_URL="https://bugs.manjaro.org/"
LOGO=manjarolinux

is affected as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kotcev picture kotcev  路  3Comments

snowmoonsoftware picture snowmoonsoftware  路  4Comments

ocdi picture ocdi  路  4Comments

bhechinger picture bhechinger  路  6Comments

fjudith picture fjudith  路  4Comments