This is now implemented as standard in gnome-common. https://bugzilla.gnome.org/show_bug.cgi?id=692052