projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6418769
)
GApplication: allow '-' in application ID
author
Ryan Lortie
<desrt@desrt.ca>
Thu, 9 Jun 2011 02:21:15 +0000
(22:21 -0400)
committer
Ryan 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
patch
|
blob
|
history
diff --git
a/gio/gapplicationimpl-dbus.c
b/gio/gapplicationimpl-dbus.c
index
fb6cf2b
..
7be5627
100644
(file)
--- 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 = '/';
+
+ if (*iter == '-')
+ *iter = '_';
}
return appid_path;
}
return appid_path;