Bug 343016 - org.freedesktop.FileManager1 service should be supported by dolphin
Summary: org.freedesktop.FileManager1 service should be supported by dolphin
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 4.14.3
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL: http://www.freedesktop.org/wiki/Speci...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-18 19:42 UTC by Andrey Loskutov
Modified: 2015-04-22 13:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov 2015-01-18 19:42:52 UTC
It would be nice if dolphin would support http://www.freedesktop.org/wiki/Specifications/file-manager-interface/ for opening folders/selecting files via dbus interface.
For example, firefox and Eclipse are using this.

Reproducible: Always

Steps to Reproduce:
create ~/.local/share/dbus-1/services/org.freedesktop.FileManager1.service

write to the file:
#####
[D-BUS Service]
Name=org.freedesktop.FileManager1
Exec=/usr/bin/dolphin
#####

mkdir ~/test
touch ~/test/hello.txt

dbus-send --print-reply --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file:/home/USER_NAME/test/hello.txt" string:""

Actual Results:  
First time dolphin can start and shows home directory, next time nothing starts at all. Dbus 

reports after some timeout:
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.


Expected Results:  
Dolphin starts and selects the given file as if it have been started with --select option. Dbus doesn't complain.
Comment 1 Emmanuel Pescosta 2015-01-18 20:42:35 UTC
I have added a task for this feature on todo.kde.org
Comment 2 Samuel Suther 2015-04-07 16:12:05 UTC
+1 from me!
Comment 3 Ashish Bansal 2015-04-22 13:33:53 UTC
Git commit 7042c6c2899a4e46a095a38ee1481b63ca4b96d8 by Ashish Bansal.
Committed on 22/04/2015 at 13:29.
Pushed by ashishbansal into branch 'master'.

Add dbus interface to dolphin

Implemented org.freedesktop.FileManager1 dbus interface in dolphin
http://www.freedesktop.org/wiki/Specifications/file-manager-interface/

REVIEW: 123313

M  +6    -1    CMakeLists.txt
A  +18   -0    cmake/DbusInterfaceMacros.cmake
A  +3    -0    org.kde.dolphin.FileManager1.service.in
M  +11   -0    src/CMakeLists.txt
A  +64   -0    src/dbusinterface.cpp     [License: GPL (v2+)]
A  +37   -0    src/dbusinterface.h     [License: GPL (v2+)]
A  +35   -0    src/global.cpp     [License: GPL (v2+)]
A  +30   -0    src/global.h     [License: GPL (v2+)]
M  +8    -9    src/main.cpp

http://commits.kde.org/dolphin/7042c6c2899a4e46a095a38ee1481b63ca4b96d8