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) Variant<String> variant = new Variant(soundName)
hints.put("sound-name", variant) hints.put("sound-name", variant)
} }
UInt32 rv = NOTIFICATIONS.Notify("MuWire", // app name try {
new UInt32(0L), // replaces NOTIFICATIONS.Notify("MuWire", // app name
"", // no icon new UInt32(0L), // replaces
summary, // summary "", // no icon
body, // body summary, // summary
Collections.emptyList(), // actions body, // body
hints, // hints Collections.emptyList(), // actions
-1) // expire timeout hints, // hints
-1) // expire timeout
} catch (NoReply ignore) {}
} }
} }