HowTo: Nautilus integration

This plugin is not yet in the official distribution packages, please use a git checkout for now.

  1. Nautilus
  2. Sharing selected folders as an UPnP A/V MediaServer
  3. Uploading selected files to UPnP A/V MediaServers
  4. Sending a file for playback to an UPnP A/V MediaRenderer
  5. Installation
  6. Open Tickets for this backend



Nautilus

Nautilus is the default filemanager for the GNOME desktop environment.

Coherence does provide three extensions that allow some interaction with the UPnP A/V world from within Nautilus.

I wrote a bit about it in my blog and there is a demonstration video @ Google Video

The extensions use DBus to communicate with a Coherence instance.

You need to have this service file in /usr/share/dbus-1/services to have a Coherence ControlPoint instance started automatically by the DBus daemon,

[D-BUS Service]
Name=org.Coherence
Exec=/usr/bin/coherence -o use_dbus:yes -o controlpoint:yes

or start Coherence yourself with '/usr/bin/coherence -o use_dbus:yes -o controlpoint:yes'. Alternatively you can supply these options in the configuration file.

Sharing selected folders as an UPnP A/V MediaServer

The extension coherence_upnp_export_extension.py can be activated via the context menu after selecting one or more folders:

context menu to share as a MediaServer

The following dialog allows the configuration of the MediaServer:

dialog to enable/disable sharing of folders

Cancel aborts configuration, Apply shares the folders in the list, Remove disables sharing of a folder. The icon in front of the folders path describes whether the folder is currently shared, will be shared or removed upon apply.



Uploading selected files to UPnP A/V MediaServers

The extension coherence_upnp_upload_extension.py can be activated via the context menu after selecting one or more files.
It uploads files to UPnP A/V MediaServers that provide a ContentDirectoryService? CreateObject? action, e.g. the Nokia N-Series phones with WLAN and some of the Coherence MediaServers:

context menu to upload files to a MediaServer

The following dialog allows the upload of the chosen files to the MediaServer:

dialog to upload files into a MediaServer

You need to select in the combo-box above the list the MediaServer you want the files to be uploaded to. In the image you see the Coherence Flickr backend selected, which will upload the files into your Flickr account.Apply then starts the uploading process or Cancel just terminates about.



Sending a file for playback to an UPnP A/V MediaRenderer

The extension coherence_upnp_play_extension.py is only visible when at least one MediaRenderer is found on the network, the MediaRenderer then can be selected in a sub-menu.

context menu to send a file to a DLNA/UPnP MediaRenderer



Installation

The extensions use the Nautilus Python interface, you probably can install that with something like sudo apt-get install python-nautilus.

Copy the content of the directory Nautilus to ~/.nautilus/python-extensions (might be necessary to add missing parts of the path first), or choose only one of the extensions.

You can test the extensions without restarting Nautilus like this:

mkdir /tmp/testing

export TMPDIR=/tmp/testing
nautilus --no-desktop

Open Tickets for this backend

#143
change cursor to busy when browsing
#156
extensions should check for the mimetype before sending or upload files
#157
play_extension should create MetaData
#158
play_extension should startup the A/V ControlPoint
#195
Translate widgets
#253
if a branch has not been retrieved it says(0) items
#287
Nautilus scripts don't work in Debian Testing/Unstable
#301
applet-coherence crashed with SIGSEGV in QSystemTrayIcon::~QSystemTrayIcon()

Attachments