PDA

View Full Version : [SOLVED] What parses '.desktop' links in Gnome?



c.cobb
July 5th, 2011, 08:48 PM
Greetings,
I've got a link named 'getting_started.desktop' on my Desktop (Ubuntu 10.04, Gnome). What actually parses this file when you double-click it? It's clearly not the /usr/bin/xdg-open script, as inserting an echo there proves.
Thank you,


#!/usr/bin/env xdg-open
[Desktop Entry]
Encoding=UTF-8
Name=Getting Started
Name[es]=Introducción
Comment=A brief overview
Comment[es]=Una breve descripción
Type=Link
URL=file:///usr/share/example-content/getting_started.html
Icon=firefox

c.cobb
July 9th, 2011, 10:44 PM
FWIW, it's the 'slurp_key_string()' function in 'libnautilus-private/nautilus-link.c'

I was hoping that it might be an easy hack to implement localization on the URL string which, according to the Desktop Entry Spec (http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#recognized-keys) is unfortunately not a 'localestring'. Seems strange to me. Anyway that would take more digging, as I'm not much of a c hacker.