Skip to content

[Feature request]: Ephemeral flatpak app installations #5181

Open

Description

@orowith2os

Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Suggestion

Flathub's buildbot generates locally installable Flatpak bundles for testing (like so: flathub/flathub#3648 (comment)).

Additionally, projects can generate per-commit and/or nightly builds for testing, and they are distributed in a similar fashion.

It would be a benefit to allow to install flatpak bundles temporarily, such as having them run once and then when done delete it automatically, have a time limit on how long a flatpak is installed for, etc.

Idea command: flatpak install --ephemeral-time=(1h, after-run, after-shutdown)

Activity

  1. thepragmaticmero commented on Jun 20, 2024

    @thepragmaticmero

    I second this, distrobox has ephemeral containers, its pretty useful, I have a sh**ty bash script for kinda simulating that behavior on flatpak. It would be nice having that on the main for quick installation and testing of apps.

  2. AdrianVovk commented on Nov 14, 2024

    @AdrianVovk
    Collaborator

    IDK about time limits, because there's nothing to schedule the wake-up in an hour to kill and uninstall the app. That has some unnecessary complexity IMO.

    But for the usecase of downloading a .flatpak bundle from a CI server and testing the app, we absolutely could introduce a flatpak run --ephemeral ./path/to/bundle.flatpak command, which simply creates an installation in /tmp, installs the bundle into there, and then runs the app. We'd use flatpak run's usual behavior of picking up runtimes from any other known installation (system, user), so the bundle will only need to contain the app.

    This would fill in a big gap in workflow that Flatpak has which is addressed by AppImage. Some projects, like GIMP, have chosen to create appimages in CI just to be able to easily run lots of different versions. We can reduce their maintainance burden pretty easily by just offering this in Flatpak.

    So, big 👍 from me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions