lib/notifier/knotify.rb in notifier-1.0.0 vs lib/notifier/knotify.rb in notifier-1.1.0
- old
+ new
@@ -10,12 +10,20 @@
$CHILD_STATUS == 0
end
def notify(options)
command = [
- "dcop", "knotify", "default", "notify", "eventname",
- options[:title].to_s, options[:message].to_s,
- "", "", "16", "2"
+ "dcop",
+ "knotify",
+ "default",
+ "notify",
+ "eventname",
+ options[:title].to_s,
+ options[:message].to_s,
+ "",
+ "",
+ "16",
+ "2"
]
Thread.new { system(*command) }.join
end
end