Skip to content

feat: use flatpak preinstall and set default apps#2122

Open
underscorejoser wants to merge 1 commit intosecureblue:nextfrom
underscorejoser:feat/flatpak-preinstall
Open

feat: use flatpak preinstall and set default apps#2122
underscorejoser wants to merge 1 commit intosecureblue:nextfrom
underscorejoser:feat/flatpak-preinstall

Conversation

@underscorejoser
Copy link
Copy Markdown
Contributor

Resolves #2014

PR for next branch. This is a proposal to use flatpak preinstall feature, this does not replace secureblueflatpaksetup, it's still being used. This approach also allows users after they rebase to another image to run flatpak preinstall and install the default apps for the desktop.

There's currently an issue with flatseal being installed on kinoite images, I have created an override for flatseal on kinoite but the problem is the desktop module is run after the kinoite module, I thought desktop module is run before the desktop-specific module, I don't know if I can just reverse for all images.

Also no apps is being preinstall on sericea images.

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 12, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@@ -0,0 +1,4 @@
[Flatpak Preinstall com.github.tchx84.Flatseal]
Branch=stable
IsRuntime=false
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

have you confirmed in testing that this overrides the desktop flatseal.preinstall?

Because the order is different in the recipe and will have to be swapped for this to work I think:

  - from-file: common/common-modules.yml
  - from-file: common/kinoite-modules.yml
  - from-file: common/desktop-modules.yml

Copy link
Copy Markdown
Contributor Author

@underscorejoser underscorejoser Apr 12, 2026

Choose a reason for hiding this comment

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

There's currently an issue with flatseal being installed on kinoite images, I have created an override for flatseal on kinoite but the problem is the desktop module is run after the kinoite module, I thought desktop module is run before the desktop-specific module, I don't know if I can just reverse for all images.

Can I just swap it for all images?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@underscorejoser oh whoops I missed that. We'd have to be very careful and comb through the codebase to make sure nothing is order-dependent. Simply rming the file before preinstalling when on a kinoite image is likely less brittle

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

You mean doing this on secureblueflatpaksetup or separate? It's just that I don't know if it's possible to delete the file within the script

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

hm yeah and if we wanted to do it in the build it would belong in kinoite-modules and then we're back at square 1. Hmmm.

@underscorejoser underscorejoser force-pushed the feat/flatpak-preinstall branch from 9b8fcb1 to e8cb0fe Compare April 17, 2026 01:31
@underscorejoser
Copy link
Copy Markdown
Contributor Author

Since the removal of cosmic player we need an alternative for cosmic

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