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

feat(init): launch desktop session #298

Merged
merged 3 commits into from
Jan 11, 2024
Merged

Conversation

d-loose
Copy link
Member

@d-loose d-loose commented Jan 11, 2024

After unsuccessfully trying to connect to GDM's DBus API from provd, we've decided to include this in the frontend instead.

This PR re-uses the code for the GDM service from #144 and adds tests. I've added a launchDesktopSession() method to the InitModel that can be called in the onNext callback of the last page in the init wizard.

Close #297
UDENG-2026

Copy link
Contributor

@spydon spydon left a comment

Choose a reason for hiding this comment

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

Lgtm!

@spydon
Copy link
Contributor

spydon commented Jan 11, 2024

Ah, didn't see that it was a draft. What's left?

@d-loose
Copy link
Member Author

d-loose commented Jan 11, 2024

Nothing left, just wanted to make sure the tests pass before marking it as ready for review.

@d-loose d-loose marked this pull request as ready for review January 11, 2024 16:49
@d-loose d-loose requested a review from sergio-costas January 11, 2024 16:52
Copy link
Contributor

@sergio-costas sergio-costas left a comment

Choose a reason for hiding this comment

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

The code looks good. It calls OpenSession in the system bus, and then creates a local DBus connection specifying "messageBus: false", as required. Then, in the launchSession method connects the required signals and begin the user verification.

@d-loose d-loose merged commit 6291742 into canonical:main Jan 11, 2024
14 checks passed
@d-loose d-loose deleted the gdm-service branch January 11, 2024 17:06
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.

Launch user session after first boot initialization
3 participants