[glib/glib-2-32] Document that g_app_info_create_from_commandline() does unquoting according to fd.o



commit fcdf7790169b108941c9890ad2acc31b81416ee1
Author: Holger Berndt <hb gnome org>
Date:   Thu May 17 22:24:10 2012 +0200

    Document that g_app_info_create_from_commandline() does unquoting according to fd.o
    
    https://bugzilla.gnome.org/show_bug.cgi?id=676277

 gio/gdesktopappinfo.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 974a43f..0f1b4ed 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2128,6 +2128,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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]