annotate content/Linux/file-manager.md @ 98:1d9382b0329b

Specify the syntax on markdown blocks to avoid broken output that has class=err
author Dirk Olmes <dirk@xanthippe.ping.de>
date Thu, 19 Dec 2019 10:04:33 +0100
parents e99db3bc53c1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
80
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 Title: Enabling "Show in System Explorer" in Eclipse on Linux
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 Date: 2016-02-10
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 Lang: en
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
97
e99db3bc53c1 Updates for pelican 4.2.0, publish the blog as HTTPS instead of HTTP
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 80
diff changeset
5 ![Show in System Explorer]({static}/images/EclipseShowInSystemExplorer.png)
80
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 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:
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
98
1d9382b0329b Specify the syntax on markdown blocks to avoid broken output that has class=err
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 97
diff changeset
9 :::shell
80
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 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
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 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.
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 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.
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15
38556e02ecb6 add new blog post
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 The result is [up on github](https://github.com/dirk-olmes/dbus-file-manager).