#include #include /* Compile with: gcc $(pkg-config --cflags --libs libxfce4util-1.0) ... */ int main (int argc, char *argv[]) { XfceRc *rc; const char *locale, *name, *untranlated; setlocale (LC_ALL, "de_DE.UTF-8"); rc = xfce_rc_simple_open ("/usr/share/applications /org.gnome.Calculator.desktop", FALSE); xfce_rc_set_group (rc, G_KEY_FILE_DESKTOP_GROUP); locale = xfce_rc_get_locale (rc); printf ("locale: %s\n", locale); name = xfce_rc_read_entry (rc, G_KEY_FILE_DESKTOP_KEY_NAME, NULL); printf ("name: %s\n", name); untranlated = xfce_rc_read_entry_untranslated (rc, G_KEY_FILE_DESKTOP_KEY_NAME, NULL); printf ("untranlated: %s\n", untranlated); xfce_rc_close (rc); return 0; }