GNOME Bugzilla – Bug 632894
Only show Desktop in file chooser button if there is one
Last modified: 2010-11-03 18:24:57 UTC
The file chooser button should only show a desktop if there is one, as opposed to the XDG_DESKTOP_DIR="$HOME" case.
Created attachment 173007 [details] [review] Only show Desktop in file chooser button if there is one
Good catch! gtkfilechooserdefault.c uses g_strcmp0() to handle the NULL check automatically (in shortcuts_append_desktop()). Please make that change and go ahead and push your patch.
Pushed, and also added the comment from shortcuts_append_desktop() which refers to the spec.