Skip to content

Commit f1d397f

Browse files
authored
OpenInExplorer
Changed from nautilus to org.freedesktop.FileManager1, so it works with all file manager that support this dbus API.
1 parent eeaa6b4 commit f1d397f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/OpenInExplorer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ local function open_in_nautilus() --Open in Nautilus
8181
elseif #images <= 15 then
8282
for _,image in pairs(images) do
8383
curr_image = image.path..PS..image.filename
84-
local run_cmd = "nautilus --select " .. df.sanitize_filename(curr_image)
84+
local run_cmd = [[busctl --user call org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1 ShowItems ass 1 ]] .. df.sanitize_filename("file://"..curr_image) .. [[ ""]]
8585
dt.print_log("OpenInExplorer run_cmd = "..run_cmd)
8686
resp = dsys.external_command(run_cmd)
8787
end

0 commit comments

Comments
 (0)