Class: Boom::Platform::Linux
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#copy_command ⇒ Object
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_command ⇒ Object
11 12 13 |
# File 'lib/kaboom/platform/linux.rb', line 11 def open_command "xdg-open" end |