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
This commit is contained in:
Ryan Lortie 2011-06-08 22:21:15 -04:00
parent 6418769e4c
commit f44cd41293

View File

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