Flathub is not accepting my app that uses Foreign Functions and Memory API

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Nov 25 11:51:29 UTC 2024


Phew. Another possibility, assuming the library dependency on libnotify 
can be found using dynamic linker, would be to use 
|SymbolLookup.libraryLookup("libnotify.so.X")| (where X is the version 
number you need). You can find the list of libraries available in your 
system typically by running |ldconfig -p| and then grepping for whatever 
you are looking for.

If the library is already installed in the Flathub runtime, there might 
be no need to have the dependency in your package?

Maurizio

On 24/11/2024 01:01, Davide Perini wrote:

> It was my fault, the binding generated with jextract was not using the 
> right path for the flatpak runtime.
>
> I fixed it with a static initialization of the lib on the correct path 
> as discussed days ago for another issue.
>
> Problem solved.
>
> Thanks
>
> On 23/11/24 12:52, Davide Perini wrote:
>> Hi there,
>> I wrote a small app that uses Foreign Functions and Memory API to 
>> show some toasts on Linux
>> using libnotify.
>>
>> The bindings is available here:
>> https://github.com/sblantipodi/firefly_luciferin/tree/dx12_pipeline/src/main/java/org/dpsoftware/gui/bindings/notify 
>>
>>
>> Flathub maintainers are not accepting my app because they say that 
>> libnotify is already included in their runtime and that the libnotify 
>> is "build only".
>> I bundled the builded .so file in my app and it works well,
>> but they don't like that I need a .so file for this and they are not 
>> accepting my app.
>>
>> Is there something I'm not understanding?
>>
>> https://github.com/flathub/flathub/pull/5874#discussion_r1854943995
>>
>> Is there a way to do what I'm doing better?
>>
>> Thanks
>> Davide
>>
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jextract-dev/attachments/20241125/93447dec/attachment.htm>


More information about the jextract-dev mailing list