Document that g_app_info_create_from_commandline() does unquoting according to fd.o
authorHolger Berndt <hb@gnome.org>
Thu, 17 May 2012 20:24:10 +0000 (22:24 +0200)
committerHolger Berndt <hb@gnome.org>
Fri, 18 May 2012 13:20:40 +0000 (15:20 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=676277

gio/gdesktopappinfo.c

index fafea1c..60c49e2 100644 (file)
@@ -2143,6 +2143,12 @@ g_desktop_app_info_delete (GAppInfo *appinfo)
  *
  * Creates a new #GAppInfo from the given information.
  *
+ * Note that for @commandline, the quoting rules of the Exec key of the
+ * <ulink url="http://freedesktop.org/Standards/desktop-entry-spec">freedesktop.org Desktop
+ * Entry Specification</ulink> are applied. For example, if the @commandline contains
+ * percent-encoded URIs, the percent-character must be doubled in order to prevent it from
+ * being swallowed by Exec key unquoting. See the specification for exact quoting rules.
+ *
  * Returns: (transfer full): new #GAppInfo for given command.
  **/
 GAppInfo *