From f1d397f908d235d5a1ce3800a611c3d8eec4a373 Mon Sep 17 00:00:00 2001 From: supertobi Date: Mon, 15 Apr 2019 23:09:01 +0200 Subject: [PATCH] OpenInExplorer Changed from nautilus to org.freedesktop.FileManager1, so it works with all file manager that support this dbus API. --- contrib/OpenInExplorer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/OpenInExplorer.lua b/contrib/OpenInExplorer.lua index 1dbe4d6..11f004f 100644 --- a/contrib/OpenInExplorer.lua +++ b/contrib/OpenInExplorer.lua @@ -81,7 +81,7 @@ local function open_in_nautilus() --Open in Nautilus elseif #images <= 15 then for _,image in pairs(images) do curr_image = image.path..PS..image.filename - local run_cmd = "nautilus --select " .. df.sanitize_filename(curr_image) + local run_cmd = [[busctl --user call org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1 ShowItems ass 1 ]] .. df.sanitize_filename("file://"..curr_image) .. [[ ""]] dt.print_log("OpenInExplorer run_cmd = "..run_cmd) resp = dsys.external_command(run_cmd) end