lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.55k stars 1.47k forks source link

Snap fail to launch with Wayland #196

Open guilhem opened 4 years ago

guilhem commented 4 years ago

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):

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

JarnoRFB commented 4 years ago

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.

Richard87 commented 4 years ago

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

webwurst commented 4 years ago

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.

alekc commented 4 years ago

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.