[gnome-shell] notificationDaemon: Consider hyphens for app ID to object path translations
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] notificationDaemon: Consider hyphens for app ID to object path translations
- Date: Mon, 25 Sep 2017 14:59:09 +0000 (UTC)
commit ce7ff27c0ce100338b472b42068fd9808fdcf27c
Author: Krzesimir Nowak <krzesimir kinvolk io>
Date: Fri Nov 18 15:52:46 2016 +0100
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index 27ed281..ed8870f 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -670,7 +670,7 @@ const FdoApplicationIface = '<node> \
const FdoApplicationProxy = Gio.DBusProxy.makeProxyWrapper(FdoApplicationIface);
function objectPathFromAppId(appId) {
- return '/' + appId.replace(/\./g, '/');
+ return '/' + appId.replace(/\./g, '/').replace(/-/g, '_');
}
function getPlatformData() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]