Method: LinuxNotifier#show

Defined in:
lib/birdy/linux_notifier.rb

#show(image_path, name, message) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/birdy/linux_notifier.rb', line 10

def show(image_path, name, message)
  app_name = 'birdy'
  replaces_id = 0
  app_icon = image_path
  summary = name
  body = wrap_links(message)
  actions = []
  hints = {}
  expire_timeout = DISPLAY_TIME_SECONDS * 1000

  @notify.Notify(app_name, replaces_id, app_icon, summary, body, actions, 
                 hints, expire_timeout)
  sleep DISPLAY_TIME_SECONDS
end