lib/notifier/notify_send.rb in notifier-0.5.2 vs lib/notifier/notify_send.rb in notifier-1.0.0
- old
+ new
@@ -1,10 +1,14 @@
+# frozen_string_literal: true
+
module Notifier
module NotifySend
extend self
def supported?
- Notifier.os?(/(linux|freebsd)/) && `which notify-send > /dev/null` && $? == 0
+ Notifier.os?(/(linux|freebsd)/) &&
+ `which notify-send > /dev/null` &&
+ $CHILD_STATUS == 0
end
def notify(options)
command = [
"notify-send", "-i",