From ce7ff27c0ce100338b472b42068fd9808fdcf27c Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Fri, 18 Nov 2016 15:52:46 +0100 Subject: [PATCH] notificationDaemon: Consider hyphens for app ID to object path translations Some application IDs contain hyphens, which are not allowed in D-Bus object paths, so we need to update the translation by converting them to something that's a valid object path. This is consistent with what GApplication does. https://bugzilla.gnome.org/show_bug.cgi?id=787902 --- js/ui/notificationDaemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 27ed28149..ed8870fe1 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -670,7 +670,7 @@ const FdoApplicationIface = ' \ const FdoApplicationProxy = Gio.DBusProxy.makeProxyWrapper(FdoApplicationIface); function objectPathFromAppId(appId) { - return '/' + appId.replace(/\./g, '/'); + return '/' + appId.replace(/\./g, '/').replace(/-/g, '_'); } function getPlatformData() {