lib/notifier/kdialog.rb in notifier-0.5.2 vs lib/notifier/kdialog.rb in notifier-1.0.0

- old
+ new

@@ -1,10 +1,14 @@ +# frozen_string_literal: true + module Notifier module Kdialog extend self def supported? - Notifier.os?(/(linux|freebsd)/) && `which kdialog > /dev/null` && $? == 0 + Notifier.os?(/(linux|freebsd)/) && + `which kdialog > /dev/null` && + $CHILD_STATUS == 0 end def notify(options) command = [ "kdialog",