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

feature: miracle can now integrate with systemd in a meaningful way #228

Merged
merged 13 commits into from
Sep 7, 2024

Conversation

mattkae
Copy link
Collaborator

@mattkae mattkae commented Sep 4, 2024

What's new?

  • Added instructions for running miracle-wm with systemd session integration
  • Added the -DSYSTEMD_INTEGRATION build option
  • miracle-wm no longer starts directly, but rather with a miracle-wm-session script (this will need more work in the future, but this is a good start)
  • miracle-wm will write to journal if it can from the default runner script
  • miracle-wm now handles shutdown events

Copy link
Collaborator

@Conan-Kudo Conan-Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks mostly good, just a couple of things...

session/README.md Show resolved Hide resolved
session/usr/bin/libexec/miracle-wm/session.sh Outdated Show resolved Hide resolved
@Conan-Kudo
Copy link
Collaborator

From @alebastr in Matrix:

since you don't have the same constraints as me, you can move parts of the session.sh to miracle-wm-session. The only things that really need to be delayed until the compositor is ready are:

  • exporting variables set by the compositor: DISPLAY, WAYLAND_DISPLAY, SWAYSOCK
  • starting the session target

Even session-shutdown.target can be invoked after the compositor exits.

session/README.md Outdated Show resolved Hide resolved
@Conan-Kudo
Copy link
Collaborator

Nope, put that Xwayland fix in a separate PR. 😛

@mattkae
Copy link
Collaborator Author

mattkae commented Sep 5, 2024

You caught me :( #237

session/usr/bin/libexec/miracle-wm/session.sh Outdated Show resolved Hide resolved
session/usr/bin/libexec/miracle-wm/session.sh Outdated Show resolved Hide resolved
session/README.md Outdated Show resolved Hide resolved
session/README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@Conan-Kudo Conan-Kudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we're finally good to go.

@Conan-Kudo Conan-Kudo enabled auto-merge (squash) September 7, 2024 13:07
@Conan-Kudo Conan-Kudo merged commit 690da3a into develop Sep 7, 2024
2 checks passed
@Conan-Kudo Conan-Kudo deleted the feature/user_session branch September 7, 2024 13:07
mattkae added a commit that referenced this pull request Sep 7, 2024
…228)

Miracle now supports running through systemd, including logging to the
journal and invoking processes as transient units through systemd-run.

This is controlled as a build-time feature in CMake.
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.

2 participants