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

Alternative Socket handover mechanisms #3

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Ferdi265
Copy link
Owner

@Ferdi265 Ferdi265 commented Aug 12, 2024

This PR implements the alternative CLI-based and environment-based socket handover mechanisms outlined in #2.

This PR is an extension of #4.

List of supported socket handover mechanisms after this PR:

  • --kde: The KDE socket handover mechanism. Socket passed via --socket and --wayland-fd
  • --cli: The alternative CLI socket handover mechanism: Socket passed via --wayland-socket and --wayland-fd (new)
  • --env: An environment-based socket handover mechanism: Socket passed via WAYLAND_SOCKET_NAME and WAYLAND_SOCKET_FD.
  • --systemd: The systemd socket activation handover mechanism: Socket passed via LISTEN_PID, LISTEN_FDS, and LISTEN_FDNAMES (new)

Testing and evaluation of the different mechanisms should be performed before this is merged, though I can see wl-restart supporting multiple of these or even all four mechanisms.

@Ferdi265
Copy link
Owner Author

Ferdi265 commented Aug 12, 2024

Adjusted branches for sway, hyprland, and labwc will be provided soon that support the other mechanisms or even all four (for testing).

The simplest to implement is probably --env, and the most complicated is --systemd, though would potentially bring the most benefits.

@Ferdi265 Ferdi265 force-pushed the feature-alternative-mechanisms branch 3 times, most recently from 89ade9d to 4d73f70 Compare August 18, 2024 11:15
@Ferdi265 Ferdi265 force-pushed the feature-alternative-mechanisms branch from 4d73f70 to 05bceb2 Compare September 27, 2024 18:51
@Ferdi265 Ferdi265 force-pushed the feature-alternative-mechanisms branch from 05bceb2 to ef5124b Compare November 13, 2024 18:13
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

Successfully merging this pull request may close these issues.

1 participant