Skip to content

feat: update mode#411

Merged
NN708 merged 5 commits intomainfrom
update-mode
Apr 15, 2026
Merged

feat: update mode#411
NN708 merged 5 commits intomainfrom
update-mode

Conversation

@NN708
Copy link
Copy Markdown
Member

@NN708 NN708 commented Apr 14, 2026

Resolves #410.

This PR adds an update mode, which is automatically activated when ~/.local/share/vanilla-first-setup/seen_app_ids.json exists.

In update mode, the user is prompted to:

  • Install any apps listed in apps.json install lists, that are not in the seen_app_ids.json install list, and not already installed.
  • Uninstall any apps listed in apps.json deprecated list, that are not in the seen_app_ids.json uninstall list, and are already installed.

The SHA-256 hash of apps.json is also stored in seen_app_ids.json, so First Setup runs only when apps.json has changed.

Screenshot of apps window Screenshot of selecting apps to install Screenshot of progress window

@NN708 NN708 requested a review from a team April 14, 2026 15:54
Copy link
Copy Markdown
Member

@taukakao taukakao left a comment

Choose a reason for hiding this comment

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

How are we gonna make sure that first-setup runs on login when the startup file was deleted for most users?

Maybe we should rather use a user systemd service in /usr/lib to run first-setup?

@NN708
Copy link
Copy Markdown
Member Author

NN708 commented Apr 15, 2026

How are we gonna make sure that first-setup runs on login when the startup file was deleted for most users?

Maybe we should rather use a user systemd service in /usr/lib to run first-setup?

Thanks for the suggestion! You're right that a system-wide approach would be more robust than a per-user one. But since first-setup is a desktop app, placing a .desktop file in /etc/xdg/autostart is the more conventional and simpler approach. I've added it there, and verified in a VM that it works as expected.

@taukakao
Copy link
Copy Markdown
Member

I think both are about as conventional by now but the xdg folder is fine by me.

@NN708 NN708 merged commit bf02cef into main Apr 15, 2026
4 checks passed
@NN708 NN708 deleted the update-mode branch April 15, 2026 23:46
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.

Implement an update mode

3 participants