darktable-org / lua-scripts

155 stars 110 forks source link

OpenInExplorer installed through flatpak #310

Open jbuencuerpo opened 3 years ago

jbuencuerpo commented 3 years ago

I am trying to use the OpenInExplorer. I am quite new to flatpak, so I hope it makes sense what I have done. To debug it I

flatpak run --command=/bin/bash org.darktable.Darktable

Then inside the bash

darktable -d lua

Then when I try to run it from the gui, this is the output.

50.025095 LUA file_uris is 'file:///mnt/metadata/foto/Sony RX100 m4/2020/Rockies2020/DSC07753.ARW'
50.025121 LUA file_uris is 'file:///mnt/metadata/foto/Sony RX100 m4/2020/Rockies2020/DSC07753.ARW' 'file:///mnt/metadata/foto/Sony RX100 m4/2020/Rockies2020/DSC07753.JPG'
50.025131 LUA OpenInExplorer run_cmd = busctl --user call org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1 ShowItems ass 2 'file:///mnt/metadata/foto/Sony RX100 m4/2020/Rockies2020/DSC07753.ARW' 'file:///mnt/metadata/foto/Sony RX100 m4/2020/Rockies2020/DSC07753.JPG'  ""
sh: busctl: command not found

I can confirm busctl is installed and working outside of flatpak Thanks,

wpferguson commented 3 years ago

This may help https://docs.flatpak.org/en/latest/sandbox-permissions.html

jbuencuerpo commented 3 years ago

I am not sure how to proceed, I will look into it with more calm. It looks it needs to be fixed adding an option in the script or through flatpak package adding more permissions..

wpferguson commented 3 years ago

@jbuencuerpo did you get this figured out?

einarjh commented 3 years ago

I am having the same issue. The linked documentation states that everything under /usr and /bin is specifically blacklisted from being accessed from within the sandbox, so how does it help to link to it?