Adding plugins to a flatpak installed app?

Alexander Larsson alexl at redhat.com
Fri May 3 09:06:08 UTC 2019


On Fri, May 3, 2019 at 10:55 AM Gerard Braad <me at gbraad.nl> wrote:
>
> Awesome, thanks! I figured I had seen something ... but
>
> >  where if you create a directory with the right
> > name in the right place that directly will appear to flatpak
> > as a locally installed extension
>
> Can you be more specific?

I'll dig it up for you, but in return you have to file a PR with
updates to the docs with it! :)

So, each installation (e.g. /var/lib/flatpak, and
~/.local/share/flatpak as well as other customly added ones) can have
a subdirectory called "extension". In this directory you can create
directories named $ref/$arch/$branch, and the contents of that will be
directly visible as the content of the plugins (i.e. what would be in
the "files" subdirectory of the deploy dir if you installed a packaged
version of the plugins).

So, for example, if you create a directory called:
 ~/.local/share/flatpak/extension/io.github.Hexchat.Plugin.Gerard/x86_64/18.08
Its contents would appear under /app/extensions/Gerard in the hexchat sandbox.

Note, the details above matches this from the hexchat manifest:
  "add-extensions": {
    "io.github.Hexchat.Plugin": {
      "version": "18.08",
      "subdirectories": true,
      "directory": "extensions",
      ...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                Red Hat, Inc
       alexl at redhat.com         alexander.larsson at gmail.com


More information about the Flatpak mailing list