Can't start weston on separate tty in container
I tried weston and sway. For example, weston gives following in Toolbox:
⬢[bam@toolbox bam]$ weston Date: 2020-04-29 MSK [18:02:14.249] weston 8.0.0 https://wayland.freedesktop.org Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/ Build: 8.0.0 [18:02:14.249] Command line: weston [18:02:14.250] OS: Linux, 5.5.17-200.fc31.x86_64, #1 SMP Mon Apr 13 15:29:42 UTC 2020, x86_64 [18:02:14.251] Starting with no config file. [18:02:14.251] Output repaint window is 7 ms maximum. [18:02:14.251] Loading module '/usr/lib64/libweston-8/drm-backend.so' [18:02:14.257] initializing drm backend [18:02:14.259] logind: not running in a systemd session [18:02:14.259] logind: cannot setup systemd-logind helper (-61), using legacy fallback [18:02:14.259] fatal: drm backend should be run using weston-launch binary, or your system should provide the logind D-Bus API. [18:02:14.259] fatal: failed to create compositor backend Internal warning: debug scope 'drm-backend' has not been destroyed.
Seems the problem is always related with logind session. Is there something we can do with it?
The problem doesn't happen if run outside the container.
Possible solution? https://github.com/containers/libpod/issues/6140#issuecomment-627385238