darktable-org / lua-scripts

155 stars 110 forks source link

Make lua-scripts flatpak aware #406

Open wpferguson opened 1 year ago

wpferguson commented 1 year ago

Flatpak's can spawn an external process making it possible to use scripts that rely on external executables. In order to do this we need to know that darktable is running as a flatpak and we need to start the executable in a flatpak compliant way.

I think we can determine if we are running a flatpak by checking for the file /.flatpak-info (thanks @paperdigits).