darktable-org / lua-scripts

155 stars 110 forks source link

enfuseAdvanced not working with flatpak #366

Closed orclex closed 2 years ago

orclex commented 2 years ago

Hi,

I'm running darktable 3.6.1 as flatpak package on Kubuntu 21.04 and have enabled enfuseAdvanced.lua by require "contrib/enfuseAdvanced" in .var/app/org.darktable.Darktable/config/darktable/luarc but I do not get the export target storage "DRI or DFF image". I also have installed enfuse in my local system. I assume the enfuseAdvanced lua script inside the flatpak sandbox isn't allowed to access the local installed binaries from enfuse. Am I right? Is there a way to allow darktable to use these binaries? Otherwise, it would be great to add depending binaries for lua scripts to the flatpak package too!

supertobi commented 2 years ago

I assume the enfuseAdvanced lua script inside the flatpak sandbox isn't allowed to access the local installed binaries from enfuse. Am I right?

You are right, that's a known limitation of flatpaks.

Is there a way to allow darktable to use these binaries?

The only way it could work is to create an Flatpak plugin for darktable that includes the Lua script and enfuse. A little bit like the plugins for GIMP: https://github.com/orgs/flathub/repositories?q=gimp&type=&language=&sort=

Perhaps @hfiguiere https://github.com/hfiguiere can help you, if you are interested in creating such a plugin. He is the one who created all the GIMP plugins.

wpferguson commented 2 years ago

Since this is a problem with flatpaks, I'll close.