Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate automatic compositor startup detection via a separate unit #41

Closed
Vladimir-csp opened this issue Sep 10, 2024 · 0 comments
Closed

Comments

@Vladimir-csp
Copy link
Owner

Vladimir-csp commented Sep 10, 2024

Following discussion in YaLTeR/niri#254

Generic compositor readiness detection via a separate unit (Type=oneshot, BindsTo=wayland-session@%i.target, Before=wayland-session@%i.target). A process in that would wait for WAYLAND_DISPLAY to appear, then maybe put some extra vars and exit. This will delay graphical-session.target until WAYLAND_DISPLAY is set.

Pros:

  • No requirement for including uwsm finalize in compositor startup if compositor interacts with systemd and activation environments by itself.
  • No need to disable compositor's systemd and activation environments interaction.
  • Prevents premature downstream units startup if compositor interacts with systemd and activation environments by itself.

Cons:

  • Custom variables will miss cleanup lists.
  • Compositors that interact with activation environments usually do not bother with dbus quirks.
  • Not all compositors can/use Type=notify on their own

A delayer unit to wait for WAYLAND_DISPLAY might be worth adding regardless.
Cleanup can be determined by somehow comparing environment before and after wayland-wm@.service startup.

Vladimir-csp added a commit that referenced this issue Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant