GApplication: allow '-' in application ID
authorRyan Lortie <desrt@desrt.ca>
Thu, 9 Jun 2011 02:21:15 +0000 (22:21 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 9 Jun 2011 02:21:15 +0000 (22:21 -0400)
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

index fb6cf2b..7be5627 100644 (file)
@@ -391,6 +391,9 @@ application_path_from_appid (const gchar *appid)
     {
       if (*iter == '.')
         *iter = '/';
+
+      if (*iter == '-')
+        *iter = '_';
     }
 
   return appid_path;