Commit 9fe9a676 authored by Cosimo Cecchi's avatar Cosimo Cecchi

gapplication-tool: ensure object paths are valid

Hyphens are not valid characters for DBus object paths; see the similar
code in gapplicationimpl-dbus.c

https://bugzilla.gnome.org/show_bug.cgi?id=727928
parent 59d11879
......@@ -238,8 +238,12 @@ app_path_for_id (const gchar *app_id)
path = g_strconcat ("/", app_id, NULL);
for (i = 0; path[i]; i++)
if (path[i] == '.')
path[i] = '/';
{
if (path[i] == '.')
path[i] = '/';
if (path[i] == '-')
path[i] = '_';
}
return path;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment