summaryrefslogtreecommitdiffstats
path: root/src/service-discovery-applet.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/service-discovery-applet.in')
-rwxr-xr-xsrc/service-discovery-applet.in11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in
index 295ce5d..3f0618d 100755
--- a/src/service-discovery-applet.in
+++ b/src/service-discovery-applet.in
@@ -163,9 +163,9 @@ class Notifications:
def display_service_notification(self, new, name, type):
- iconfile = "@iconsdir@/48x48/%s.png" % (type)
+ iconfile = "file://@iconsdir@/48x48/%s.png" % (type)
if not os.path.exists(iconfile):
- iconfile = "@iconsdir@/48x48/service-discovery-applet.png"
+ iconfile = "file://@iconsdir@/48x48/service-discovery-applet.png"
stdb = ServiceTypeDatabase()
h_type = stdb.get_human_type(type)
@@ -178,13 +178,12 @@ class Notifications:
self.display_notification(title, message, iconfile)
- def display_notification(self, title, message, iconfile = "@iconsdir@/48x48/service-discovery-applet.png"):
+ def display_notification(self, title, message, iconfile = "file://@iconsdir@/48x48/service-discovery-applet.png"):
try:
if self.applet.show_notifications == True:
self.notif.Notify(_("Zeroconf Service Discovery"),
- iconfile, dbus.UInt32(0),"",dbus.Byte(0),
- title,message,
- [iconfile],[""],[""],True,dbus.UInt32(3))
+ iconfile, dbus.UInt32(0), title, message,
+ [], [], dbus.Int32(3000), dbus.UInt32(0))
except:
print "can't use notification daemon"
pass