You are not logged in.
When I try to launch Chromium (Chromium-ozone), I'm getting following error:
(chromium:368931): Gtk-WARNING **: 12:15:33.180: cannot open display:
I tried to get more meaningful output like this:
$ DISPLAY=wayland-0 chromium --no-sandbox --enable-logging=stderr --v=1
[485720:485720:1116/124819.831582:VERBOSE1:breakpad_linux.cc(2041)] Breakpad disabled
[485758:485758:1116/124819.864162:INFO:cpu_info.cc(53)] Available number of cores: 6
[485758:485758:1116/124819.864205:VERBOSE1:zygote_main_linux.cc(217)] ZygoteMain: initializing 0 fork delegates
(chromium:485720): Gtk-WARNING **: 12:48:19.867: cannot open display: wayland-0
My environment variables are the following:
$ printenv
SHELL=/bin/bash
COLORTERM=truecolor
I3SOCK=/run/user/1000/sway-ipc.1000.366847.sock
XCURSOR_SIZE=24
XDG_SEAT=seat0
PWD=/home/niklas
LOGNAME=niklas
XDG_SESSION_TYPE=tty
HOME=/home/niklas
LANG=en_US.UTF-8
SWAYSOCK=/run/user/1000/sway-ipc.1000.366847.sock
WAYLAND_DISPLAY=wayland-0
KITTY_WINDOW_ID=1
INVOCATION_ID=a6089a9bb957470eb3ab3ef51d3aedba
XDG_SESSION_CLASS=user
TERMINFO=/usr/lib/kitty/terminfo
TERM=xterm-kitty
USER=niklas
SHLVL=1
XDG_VTNR=1
XDG_SESSION_ID=1
XDG_RUNTIME_DIR=/run/user/1000
JOURNAL_STREAM=9:19423
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/niklas
_=/usr/bin/printenv
While trying to solve this error, some stated that this might be a permission problem (i.e. my home belongs to root), but this doesn't seem to be the case:
$ pwd && ls -la
/home
total 12
drwxr-xr-x 3 root root 4096 Jul 25 03:21 .
drwxr-xr-x 17 root root 4096 Nov 14 12:08 ..
drwx------ 10 niklas niklas 4096 Nov 16 13:07 niklas
I've tried fixing this problem for some time now, at some point I also tried Firefox, but also couldn't get it to start.
Any of you have an idea what I could try next?
Last edited by neraz (2019-11-16 13:30:08)
Offline
You have to have xorg-server-xwayland installed for running xwayland applications. Neither chromium nor firefox are native on wayland by default yet.
Last edited by V1del (2019-11-16 13:09:30)
Offline
Oh ok, so the ozone version of Chromium just enables it to run via xwayland? I thought I wouldn't need xwayland as long as I'm using the ozone version.
Well, that explains a lot
Thank you for your quick help, I'll try it.
Offline
firefox works with wayland, copy the firefox.desktop file under ~/.local/share/applications
replace Exec=firefox-beta %u
with
Exec=env MOZ_ENABLE_WAYLAND=1 firefox-beta %u
Offline
firefox works with wayland, copy the firefox.desktop file under ~/.local/share/applications
replace Exec=firefox-beta %u
with
Exec=env MOZ_ENABLE_WAYLAND=1 firefox-beta %u
how to do this under dmenu?
Offline