# HG changeset patch # User Dirk Olmes # Date 1455072205 -3600 # Node ID 38556e02ecb61b2c291d1ec2d21b71755dfea99a # Parent 0d96547a630f05237396c08ea9e253248e653fff add new blog post diff -r 0d96547a630f -r 38556e02ecb6 content/Linux/file-manager.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/Linux/file-manager.md Wed Feb 10 03:43:25 2016 +0100 @@ -0,0 +1,15 @@ +Title: Enabling "Show in System Explorer" in Eclipse on Linux +Date: 2016-02-10 +Lang: en + +![Show in System Explorer](|filename|/images/EclipseShowInSystemExplorer.png) + +On my [Gentoo](http://www.gentoo.org/) machine the "Show in System Explorer" menu item did not work on Eclipse. I kept getting this error message: + + Execution of 'dbus-send --print-reply --dest=org.freedesktop.FileManager1 /org/freedesktop/FileManager1 org.freedesktop.FileManager1.ShowItems array:string:"file:/tmp/HelloWorld.java" string:""' failed with return code: 1 + +A quick search on the net found the [freedesktop File Manager DBus specification](http://www.freedesktop.org/wiki/Specifications/file-manager-interface/). It mentions only Gnome's Nautilus implementing the dbus interface - but I do not use Gnome, I use [XFCE](http://www.xfce.org/). Some more searching finds a [ticket on the XFCE bugtracker](https://bugzilla.xfce.org/show_bug.cgi?id=12414) which confirms that Thunar, the XFCE file manager, does not support the file manager DBus interface yet. + +Now I had some motivation to learn more about the dbus message bus. There are even [Python language bindings](https://dbus.freedesktop.org/doc/dbus-python/) for dbus and the [tutorial](https://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html) suggests that it should not be too hard to put together some glue code that exposes the freedesktop file manager interface and forwards all calls to Thunar. + +The result is [up on github](https://github.com/dirk-olmes/dbus-file-manager). \ No newline at end of file diff -r 0d96547a630f -r 38556e02ecb6 content/images/EclipseShowInSystemExplorer.png Binary file content/images/EclipseShowInSystemExplorer.png has changed