* Loss of a wayland socket by a systemd user session @ 2016-11-18 18:12 Tomas Novotny 2016-11-19 2:47 ` Daniel Díaz 0 siblings, 1 reply; 3+ messages in thread From: Tomas Novotny @ 2016-11-18 18:12 UTC (permalink / raw) To: openembedded-core Hi all, I'm using weston and its 'weston-start' script shipped with oe-core (morty). It works perfectly until root is logged in. The problematic path is: 1) 'weston-start' is started during boot. XDG_RUNTIME_DIR for root doesn't exist so it is created and 'wayland-0' socket is created in that directory. So far so good. 2) When root is logged in, systemd user session is started via 'systemd --user'. This replaces original XDG_RUNTIME_DIR (new tmpfs is mounted over it) and the 'wayland-0' socket is lost. Logout doesn't help, the original XDG_RUNTIME_DIR is deleted. You can imagine that weston doesn't work properly without that socket. Is there any proper way to fix it? Thanks, Tomas ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Loss of a wayland socket by a systemd user session 2016-11-18 18:12 Loss of a wayland socket by a systemd user session Tomas Novotny @ 2016-11-19 2:47 ` Daniel Díaz 2016-11-22 17:27 ` Tomas Novotny 0 siblings, 1 reply; 3+ messages in thread From: Daniel Díaz @ 2016-11-19 2:47 UTC (permalink / raw) To: Tomas Novotny, openembedded-core Hello! On 11/18/2016 12:12 PM, Tomas Novotny wrote: > I'm using weston and its 'weston-start' script shipped with oe-core (morty). > It works perfectly until root is logged in. The problematic path is: [...] We've seen that [1]. If you have PAM, you can modify weston-start to pass `-u root' to weston-launch [2]. You can also try this systemd service unit and launch Weston directly: https://github.com/mrchapp/meta-96boards/commit/ac3e11e Greetings! Daniel Díaz daniel.diaz@linaro.org [1] https://bugs.linaro.org/show_bug.cgi?id=2576 [2] https://github.com/mrchapp/meta-96boards/commit/ee71b7e ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Loss of a wayland socket by a systemd user session 2016-11-19 2:47 ` Daniel Díaz @ 2016-11-22 17:27 ` Tomas Novotny 0 siblings, 0 replies; 3+ messages in thread From: Tomas Novotny @ 2016-11-22 17:27 UTC (permalink / raw) To: Daniel Díaz; +Cc: openembedded-core Hi Daniel, On Fri, 18 Nov 2016 20:47:05 -0600 Daniel Díaz <daniel.diaz@linaro.org> wrote: > Hello! > > > On 11/18/2016 12:12 PM, Tomas Novotny wrote: > > I'm using weston and its 'weston-start' script shipped with oe-core (morty). > > It works perfectly until root is logged in. The problematic path is: > [...] > > We've seen that [1]. If you have PAM, you can modify weston-start to > pass `-u root' to weston-launch [2]. > > You can also try this systemd service unit and launch Weston directly: > https://github.com/mrchapp/meta-96boards/commit/ac3e11e thanks a lot, this patch works for me. It is nice that it also removes the weston-launch. Were you thinking about upstreaming your patch? By the way, the first fix [2] didn't work for me (although I checked it briefly). Thanks again, Tomas > Greetings! > > Daniel Díaz > daniel.diaz@linaro.org > > > [1] https://bugs.linaro.org/show_bug.cgi?id=2576 > [2] https://github.com/mrchapp/meta-96boards/commit/ee71b7e > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-11-22 17:27 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-18 18:12 Loss of a wayland socket by a systemd user session Tomas Novotny 2016-11-19 2:47 ` Daniel Díaz 2016-11-22 17:27 ` Tomas Novotny
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox