lib/notifier/kdialog.rb in notifier-0.1.3 vs lib/notifier/kdialog.rb in notifier-0.1.4
- old
+ new
@@ -5,15 +5,15 @@
def supported?
RUBY_PLATFORM =~ /(linux|freebsd)/ && `which kdialog > /dev/null` && $? == 0
end
def notify(options)
- command = %W[
- kdialog
- --title='#{options[:title]}'
- --passivepopup='#{options[:message]}' 5
- ].join(" ")
+ command = [
+ "kdialog",
+ "--title", options[:title],
+ "--passivepopup", options[:message], "5"
+ ]
- Thread.new { `#{command}` }
+ Thread.new { system(*command) }
end
end
end