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

Allow to login in the newly created session after setup #144

Closed
wants to merge 25 commits into from

Conversation

sergio-costas
Copy link
Contributor

This patch adds a new final page to ubuntu_init where the button to launch the store is removed (since it doesn't work on core desktop) and that launches the newly created session by calling GDM.

This patch requires the patches for dbus.dart that implements support for point-to-point dbus connections: canonical/dbus.dart#363

Copy link
Contributor

@kenvandine kenvandine left a comment

Choose a reason for hiding this comment

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

The new page is using text and an image from the store page. We need new strings for this page, I'd recommend modeling it off gnome-initial-setup's final page.

It would also be good to include a screenshot of the page in the PR

@sergio-costas
Copy link
Contributor Author

Changed the launchsession page to mimic the one in gnome-initial-setup.

imagen

@sergio-costas
Copy link
Contributor Author

I don't know what is happening with github... the "git push" command doesn't work.

@sergio-costas
Copy link
Contributor Author

Uploaded.

@sergio-costas
Copy link
Contributor Author

Rebased to fix the conflicts.

"@launchsessionTitle": {},
"launchsessionHeader": "All done!",
"@launchsessionHeader": {},
"launchsessionDescription": "You can now begin using Ubuntu Core Desktop.",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is fine for now, but eventually we want to detect the OS identifier from /etc/os-release. But that's still an outstanding item we need to resolve on the core22-desktop side first.

@sergio-costas
Copy link
Contributor Author

@kenvandine I misunderstood the comment from Robert at his dbus.dart branch; anyway, I tested it and the code does work with the current code in main, so that branch doesn't need to be merged. Also, I had to revert a change that I did, because it is needed to "reuse" the GDM connection for the greeter and the user verifier.

This PR adds an extra page that can be used at the end for login
into the newly created session.
This patch uses DBus to launch a Gnome Shell session after the
setup has been completed.

It requires the last changes to the DBus module to support
point-to-point DBus communication over a custom unix socket.
- moving GdmService into a true service
- encapsulate getting the username and password into GdmService
- return the Store page
It is a must to re-use the GDM connection to ensure that
launching the new session does work.

Also, the branch from Robert Ancell is not needed anymore; with
the current code in the main branch is enough.
@sergio-costas sergio-costas force-pushed the add-login-on-end branch 3 times, most recently from 9faec18 to 6a2a8a1 Compare November 8, 2023 14:30
@sergio-costas
Copy link
Contributor Author

@d-loose Should I close this, since it seems to have been implemented with #298 ?

@d-loose
Copy link
Member

d-loose commented May 8, 2024

Yes :)
Let's discuss additional requirements for Core Desktop in Madrid if there are any!

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.

3 participants