From: Ryan Lortie Date: Thu, 9 Jun 2011 02:21:15 +0000 (-0400) Subject: GApplication: allow '-' in application ID X-Git-Tag: 2.29.8~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f44cd4129356dd569fd90e3ea83e386bce0602a7;p=platform%2Fupstream%2Fglib.git GApplication: allow '-' in application ID By converting it to _ before trying to shove it into an object path. https://bugzilla.gnome.org/show_bug.cgi?id=652025 --- diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c index fb6cf2b..7be5627 100644 --- a/gio/gapplicationimpl-dbus.c +++ b/gio/gapplicationimpl-dbus.c @@ -391,6 +391,9 @@ application_path_from_appid (const gchar *appid) { if (*iter == '.') *iter = '/'; + + if (*iter == '-') + *iter = '_'; } return appid_path;