Class: Boom::Platform::Linux

Inherits:
Base
  • Object
show all
Defined in:
lib/kaboom/platform/linux.rb

Instance Method Summary collapse

Methods inherited from Base

#copy, #edit, #open_file

Instance Method Details

#copy_commandObject



3
4
5
# File 'lib/kaboom/platform/linux.rb', line 3

def copy_command
  'xclip -selection clipboard'
end

#open(item) ⇒ Object



7
8
9
# File 'lib/kaboom/platform/linux.rb', line 7

def open item
  system "#{open_command} '#{item.url.gsub("\'","'\\\\''")}'"
end

#open_commandObject



11
12
13
# File 'lib/kaboom/platform/linux.rb', line 11

def open_command
  "xdg-open"
end