9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/notification/finder.rb', line 9
def self.find_notify
if RUBY_PLATFORM =~ /mswin/
return
elsif RUBY_PLATFORM =~ /linux/
libnotify = system('locate libnotify-bin > /dev/null')
if libnotify && LibCheck.autotest
require_relative "gnomenotify"
return "libnotify"
elsif LibCheck.autotest_notification
require_relative "growl"
return "growl"
else
return
end
elsif RUBY_PLATFORM =~ /darwin/i
if LibCheck.autotest_notification
require_relative "growl"
return "growl"
else
return
end
end
end
|