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(refresh): quit installer instead of restarting #469

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

d-loose
Copy link
Member

@d-loose d-loose commented Feb 29, 2024

The refresh mechanism currently fails to launch the updated version of the UI once the ubuntu-desktop-bootstrap snap has been refreshed by subiquity, see canonical/ubuntu-desktop-installer#2377. This is because calling execv(Platform.resolvedExecutable, []) from within the snap relaunches the old revision instead of the updated one.
As a simple fix, we can just quit the installer and ask the user to relaunch it. I haven't figured out how to properly test this yet, but I don't see why this approach shouldn't work. In any case, merging this PR cannot make it worse than it currently is :)

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!
Any reason it is named onQuit instead of onClose (or maybe onExit) for example?

@d-loose
Copy link
Member Author

d-loose commented Feb 29, 2024

Lgtm! Any reason it is named onQuit instead of onClose (or maybe onExit) for example?

That was driven by quitLabel from the ubuntu localizations.

@d-loose d-loose force-pushed the refresh-quit branch 2 times, most recently from 8b88e0d to a4e2808 Compare February 29, 2024 16:49
@d-loose d-loose merged commit b617e57 into canonical:main Feb 29, 2024
16 checks passed
@d-loose d-loose deleted the refresh-quit branch February 29, 2024 17:10
github-actions bot pushed a commit that referenced this pull request Feb 29, 2024
feat(refresh): quit installer instead of restarting
github-actions bot pushed a commit that referenced this pull request Feb 29, 2024
feat(refresh): quit installer instead of restarting
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