lib/notifier/notify_send.rb in notifier-0.1.3 vs lib/notifier/notify_send.rb in notifier-0.1.4

- old
+ new

@@ -5,11 +5,16 @@ def supported? RUBY_PLATFORM =~ /(linux|freebsd)/ && `which notify-send > /dev/null` && $? == 0 end def notify(options) - Thread.new do - `notify-send -i #{options[:image]} "#{options[:title]}" "#{options[:message]}"` - end + command = [ + "notify-send", "-i", + options[:image], + options[:title], + options[:message] + ] + + Thread.new { system(*command) } end end end