Wednesday, November 23, 2011

Adventures with Darktable

As you may know, I rely heavily, almost exclusively, on Linux and open-source software for my day-to-day stuff. I've been very happy with Darktable for managing the workflow associated with having to post-process RAW photographs.

However Darktable, like any other software product, is not without its quirks. For example, I use one of Darktable's export plugins to upload files directly to Flickr, and the other day it stopped working. Normally, Darktable spawns a browser window in which the user must sign into Flickr and authorize Darktable to upload photos to your account. However, recently the plugin stopped spawning the browser window.

After a little digging, I discovered that Darktable uses the gtk_show_uri library call to invoke the browser window. This call invokes the gnome-open binary to actually spawn the browser. When I tried to run gnome-open myself I got an error that Epipany wasn't found.

That was kind of a forehead-slapping moment for me. Recently I'd done a dist-upgrade on my computer, which replaced Gnome 2 with Gnome 3. Like most other people out there with a less than state-of-the-art computer, I hate Gnome 3 for it's inability to stop wasting resources and just get out of the way so I can do my job. So, I've been running Xfce for a little while. It's like all the features of Gnome, without all the bloat. But I digress. What was wrong was that the gtk libraries still thought epiphany was my browser.

I fired up gnome-control-center and, under System Properties, is a section to allow the user to change their default applications. I changed "Epiphany" to "Chromium", and now when I use the Flickr export plugin in Darktable, I get a Chromium window with the Flickr login prompt.