Make notifications transient (except for errors).
This commit is contained in:
parent
2ee689652d
commit
d400a05435
@ -150,12 +150,13 @@ class SearchPassService(dbus.service.Object):
|
|||||||
message,
|
message,
|
||||||
body,
|
body,
|
||||||
'',
|
'',
|
||||||
'',
|
{'transient': False if error else True},
|
||||||
0 if error else 3000,
|
0 if error else 3000,
|
||||||
dbus_interface='org.freedesktop.Notifications'
|
dbus_interface='org.freedesktop.Notifications'
|
||||||
)
|
)
|
||||||
except dbus.DBusException as err:
|
except dbus.DBusException as err:
|
||||||
print('Got error {} while trying to display message {}.'.format(err, message))
|
print('Got error {} while trying to display message {}.'.format(
|
||||||
|
err, message))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user