<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 07/01/2018 04:54 PM, Alec Leamas wrote:<br>
<blockquote type="cite"
cite="mid:860849fb-6b6a-b248-1f65-cf0f9b57afeb@gmail.com">
<pre wrap="">
On 01/07/18 18:35, John Stebbins wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 07/01/2018 09:20 AM, Alec Leamas wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Dear list,
Yes, I ran into two problems flatpaking opencpn [1]. The other is that
opencpn uses a lot of plugins, some of which typically installed in an
existing opencpn installation. The question then becomes: how can we
accomnplish this in the application sandbox?
Can we just drop a pre-built plugin.so in the sandbox? How, then?
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Yes, it is possible. In flatpak lingo, these are called extensions.
There are not a lot of examples out there of application plugins,
but Hexchat is one. There is also a current PR for VLC to add plugin support.
Hexchat app where it defines the extension point
<a class="moz-txt-link-freetext" href="https://github.com/flathub/io.github.Hexchat">https://github.com/flathub/io.github.Hexchat</a>
And the Hexchat perl plugin that uses the extension point
<a class="moz-txt-link-freetext" href="https://github.com/flathub/io.github.Hexchat.Plugin.Perl">https://github.com/flathub/io.github.Hexchat.Plugin.Perl</a>
</pre>
</blockquote>
<pre wrap="">
Thanks for good pointers! I think I grasp parts of it, but stumble on
the fact that flatpack-builder doesn't support building extensions of
this kind[1].
Has anyone a working example how to build an extension like this i. e.,
something which extends an app rather than a runtime?
Cheers!
</pre>
</blockquote>
<br>
<tt>flatpak-builder certainly does support building an extension
like this. The second link I provided is a flatpak manuscript for
building the perl plugin for hexchat with flatpak-builder. i.e.
to create the extension, you should be able to run something like:</tt><tt><br>
</tt><tt><br>
</tt><tt>flatpak-builder --repo=blah buildDir </tt><tt><span
class="final-path">io.github.Hexchat.Plugin.Perl.json<br>
<br>
You would of coarse have to install io.github.Hexchat first
since this extension depends on it.<br>
<br>
I think you may be getting misled by the line<br>
</span></tt><br>
<tt><span class="final-path"> <span class="pl-s"><span
class="pl-pds">"</span>runtime<span class="pl-pds">"</span></span>:
<span class="pl-s"><span class="pl-pds">"</span>io.github.Hexchat<span
class="pl-pds">"</span></span>,<br>
<br>
in the extension's manufest. It's a small abuse of the
"runtime" key. Hexchat is not really a runtime. But from the
plugin's perspective, it is.<br>
</span></tt><strong class="final-path"></strong><strong
class="final-path"><br>
</strong>
<pre class="moz-signature" cols="120">--
John GnuPG fingerprint: D0EC B3DB C372 D1F1 0B01 83F0 49F1 D7B2 60D4 D0F7
</pre>
</body>
</html>