Skip to content

Commit

Permalink
dbus expects html-ish so escape &.. should probably use a lib
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Jan 19, 2017
1 parent bab1dc8 commit 2a31699
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ntfy/backends/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ def notify(title, message, icon=icon.png, retcode=0):
dbus_iface = dbus.Interface(dbus_obj,
dbus_interface='org.freedesktop.Notifications')
hints = {'urgency': dbus.Byte(2)} if retcode else {}
message = message.replace('&', '&')
dbus_iface.Notify('ntfy', 0, path.abspath(icon), title, message, [], hints,
-1)

0 comments on commit 2a31699

Please sign in to comment.