provision for dbus timeouts

browse-v2 seedbox-core-0.1.0
Zlatin Balevsky 2022-08-26 01:08:00 +01:00
parent 76e580a288
commit e6d728ce66
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 10 additions and 8 deletions

View File

@ -40,13 +40,15 @@ class DBUSNotifyService {
Variant<String> variant = new Variant(soundName)
hints.put("sound-name", variant)
}
UInt32 rv = NOTIFICATIONS.Notify("MuWire", // app name
new UInt32(0L), // replaces
"", // no icon
summary, // summary
body, // body
Collections.emptyList(), // actions
hints, // hints
-1) // expire timeout
try {
NOTIFICATIONS.Notify("MuWire", // app name
new UInt32(0L), // replaces
"", // no icon
summary, // summary
body, // body
Collections.emptyList(), // actions
hints, // hints
-1) // expire timeout
} catch (NoReply ignore) {}
}
}