Skip to content

Offer Flatpak as Linux installation option #7112

Closed

Description

Ubuntu has "click" packages:

For everyone else (including Ubuntu):

LibreOffice is now available via Flatpak:

Although there are some caveats:

Flatpak-based apps are not yet able to reach out to other applications installed on the machine (like browsers) to e.g. open URLs through them. That means that e.g. clicking on a hyperlink in a LibreOffice Writer document might not work yet.

Besides being a path to having a single Linux bundle format, there are also sandbox features that might be appealing. Might be nice to know that a VSCode extension can't modify /boot, etc.

Activity

  1. Tyriar commented on Jun 2, 2016

    @Tyriar
    Contributor

    Apparently click packages is the old name for snappy packages which is captured here #5458

    The caveats sounds like an issue, xdg-open which is used by Electron to open URLs is an example of something that may break.

  2. added
    feature-request
    install-update
    linux
    on Jun 2, 2016
  3. changed the title [-][FEATURE REQUEST] offer Flatpak / click as Linux installation option[/-] [+]Offer Flatpak as Linux installation option[/+] on Jun 2, 2016
  4. jokeyrhyme commented on Jun 2, 2016

    @jokeyrhyme
    Author

    It's entirely possible that it's just simply too early to jump on the click / Flatpak bandwagons. Fair enough.

    I do think we'll see these evolve to have similar inter-app communication APIs that Android, WinRT and possibly iOS offers for their sandboxed apps.

    Maybe in a fanciful future Linux utopia, we could have Flatpak and click instead of RPMs and DEBs, and have a far more comprehensive coverage of compatible distributions? :P

  5. jokeyrhyme commented on Jun 15, 2016

    @jokeyrhyme
    Author
  6. zaxebo1 commented on Sep 20, 2016

    @zaxebo1

    for me the biggest advantage of flatpak format is that I can install flatpak packages by using non-admin privileges.
    whereas rpm/deb packages always need admin privilege for installation

  7. aperezdc commented on Nov 25, 2016

    @aperezdc
    Contributor

    Hi there! I am working on this at the moment and I have integration with the Gulp-based build system working in this branch. I still have to iron out a couple of details, but hopefully I'll be able to send a PR in the next days. Stay tuned!

  8. Tyriar commented on Nov 25, 2016

    @Tyriar
    Contributor

    Nice Adrian Perez (@aperezdc)! After a quick look at the branch my main comment so far is that the task should go in gulpfile.vscode.linux.js

  9. aperezdc commented on Nov 26, 2016

    @aperezdc
    Contributor

    Daniel Imms (@Tyriar) Wow, that was some quick feedback! I was doubting whether to add in gulpfile.vscode.linux.js or not myself... I'll take you advice and move the Flatpak bits in there before posting the PR. Thanks!

  10. Tyriar commented on Nov 26, 2016

    @Tyriar
    Contributor

    Cool, looking forward to it!

  11. aperezdc commented on Nov 28, 2016

    @aperezdc
    Contributor

    ...aaand there goes the PR! I have added in a few more commits with some niceties:

    • Optional support for writing output to an OSTree repository by defining the $FLATPAK_REPO environment variable (if given, it should be a local path). This is useful for distributing the Flatpak from a repository and being able to easily push updates to users.
    • Optional support for signing builds with GnuPG by setting the $GPG_KEY_ID environment variable.
    • An AppData XML data file, added also to the .deb and .rpm packages, which is used by some application managers (like GNOME Software) to display information about the application.

    Also, I have tested locally that all the combinations of options generate working Flatpaks (repo vs. file, signed vs. unsigned, etc). I couldn't test the ARM builds, though.

  12. 1 remaining item

  13. Tyriar commented on Dec 14, 2016

    @Tyriar
    Contributor

    The PR has been merged so you should now be able to build flatpak in OSS builds. This issue will remain open for now until we choose to distribute flatpak.

  14. moosingin3space commented on Feb 6, 2017

    @moosingin3space

    Does this help at all?

    I like this idea a lot, it handles updating very nicely.

  15. jokeyrhyme commented on Feb 10, 2017

    @jokeyrhyme
    Author
  16. directhex commented on Oct 30, 2017

    @directhex

    Don't want to speak for Daniel Imms (@Tyriar) here, but I expect flatpak/flatpak#649 is a blocker.

  17. Tyriar commented on Oct 30, 2017

    @Tyriar
    Contributor

    Jo Shields (@directhex) 👍 , we will likely pursue snap packages first though.

  18. robinst commented on Nov 14, 2017

    @robinst

    Looks like the nice people of flathub are adding VS Code 🎉: flathub/flathub#150

  19. nedrichards commented on Nov 16, 2017

    @nedrichards

    Robin Stocker (@robinst) that's just an 'extra-data' package sadly (but does get the 'official' branding because of that). I'd love to refresh the upstream support for flatpak which seems to have bitrotted a bit, especially to support network free builds with tools like recent npm or yarn, but just don't really have the time or expertise.

  20. amtlib-dot-dll commented on Nov 17, 2017

    @amtlib-dot-dll
    Contributor

    Nick Richards (@nedrichards) Sorry but could you explain the word "bitrotted"? It doesn't seem to be an English word, thanks very much 😕

  21. AdrianKoshka commented on Nov 20, 2017

    @AdrianKoshka

    I'd appreciate flatpak support, in Fedora Atomic workstation it's more encouraged to use flatpaks than traditional rpms.

  22. kt215 commented on Aug 22, 2018

    @kt215

    I installed vscode flatpak on Linux Mint 19 (Cinnamon, Ubuntu 18.04), but vscode was unusable due to some access restrictions. The integrated terminal could not even see the installed dotnet sdk. I uninstalled and re-installed using the deb package instead, and that fixed the access/permission issue.

  23. Tyriar commented on Sep 12, 2018

    @Tyriar
    Contributor

    Looks like this is mostly handled by flathub, we don't really recommend using it officially though due to issues like Ken (@kt215) is suggesting.

  24. nedrichards commented on Sep 13, 2018

    @nedrichards

    Sure - from a flathub perspective we'd be happy to have interested parties working upstream at VS Code (and dependencies) to improve the way it operates inside a container or helping at flathub to keep it up to date, but there's no expectation of extra work being done, the world is busy enough.

  25. locked and limited conversation to collaborators on Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinstall-updatelinux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions