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

fix: dont start session service starting targets #37

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

SoumyaRanjanPatnaik
Copy link
Contributor

This commit ensures that starting regolith-wayland.target and regolith-x11.target doesn't automatically start their corresponding services. However, the targets are still started with their corresponding services, for which regolith-x11.service and regolith-wayland.service are made into the entry points for the session.

These changes also establish a stronger dependency between service files and target files using the BindsTo directive, such that the lifecycle of regolith-wayland.service and regolith-x11.service is dependent on regolith-wayland.target and regolith-x11.target. This implies, starting the services starts the targets and the service then responds to lifecycle of the target, including restart and stop. But starting the target won't start the service.

Fixes: #36

This commit ensures that starting regolith-wayland.target and
regolith-x11.target doesn't automatically start their corresponding
services. However, the targets are still started with their
corresponding services, for which regolith-x11.service and
regolith-wayland.service are made into the entry points for the session.

These changes also establish a stronger dependency between service files
and target files using the `BindsTo` directive, such that the lifecycle
of regolith-wayland.service and regolith-x11.service is dependent on
regolith-wayland.target and regolith-x11.target. This implies, starting
the services starts the targets and the service then responds to
lifecycle of the target, including restart and stop. But starting the
target won't start the service.

Fixes: #36
Copy link
Member

@kgilmer kgilmer left a comment

Choose a reason for hiding this comment

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

LGTM

@kgilmer kgilmer merged commit 87468a1 into main Jun 18, 2024
1 check passed
@kgilmer kgilmer deleted the fix/unintended_session_start branch June 18, 2024 13:56
@kgilmer
Copy link
Member

kgilmer commented Jun 18, 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

Successfully merging this pull request may close these issues.

X11 session fails to start on Ubuntu Jammy
2 participants