emersion / mako

A lightweight Wayland notification daemon
https://wayland.emersion.fr/mako
MIT License
2.17k stars 137 forks source link

systemd user service ExecCondition checking for WAYLAND_DISPLAY fails, need to autostart in sway #496

Closed krei-se closed 7 months ago

krei-se commented 7 months ago

I don't understand how a systemd-service in userspace for mako would ever work as there is no WAYLAND_DISPLAY set before sway is started.

Debugging the environment variables available in systemd userspace even after starting sway there is no DISPLAY or WAYLAND_DISPLAY available, thus the service will always fail.

Is there a better way to have mako running for all users?

emersion commented 7 months ago

One needs to use systemctl import-environment ... inside the Sway config.