The default Linux command (dbus-send ...) fails on CentOS 6 and CentOS 7. Changing it to nautilus "${selected_resource_parent_loc}" makes it work. I got this information from this documentation page , which I received from this error report .
I am creating an RCP application and I do not want my users to manually change this setting. Using a spyware spy, I found an appropriate repository of preferences and a key. So this non-API call will programmatically set preference:
IDEWorkbenchPlugin.getDefault().getPreferenceStore().setValue(IDEInternalPreferences.WORKBENCH_SYSTEM_EXPLORER, "nautilus \"${selected_resource_parent_loc}\"");
In newer versions of nautilus, you can specify ${selected_resource_loc} instead, in which case it opens the parent folder with the selected resource. I watched this with nautilus v 3.14, but in version 2.28 an error is thrown: the resource is not a folder.
MidnightJava Feb 24 '17 at 21:50 2017-02-24 21:50
source share