From f44cd4129356dd569fd90e3ea83e386bce0602a7 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Wed, 8 Jun 2011 22:21:15 -0400 Subject: [PATCH] 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 --- gio/gapplicationimpl-dbus.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gio/gapplicationimpl-dbus.c b/gio/gapplicationimpl-dbus.c index fb6cf2b4a..7be562775 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;