Class: Launchy::Detect::NixDesktopEnvironment::Xdg

Inherits:
Launchy::Detect::NixDesktopEnvironment show all
Defined in:
lib/launchy/detect/nix_desktop_environment.rb

Overview

Fall back environment as the last case

Class Method Summary collapse

Methods inherited from Launchy::Detect::NixDesktopEnvironment

browsers, detect, fallback_browsers

Methods included from Launchy::DescendantTracker

#children, #find_child, #inherited

Class Method Details

.browserObject



74
75
76
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 74

def self.browser
  ::Launchy::Argv.new( 'xdg-open' )
end

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 70

def self.is_current_desktop_environment?
  Launchy::Application.find_executable( browser )
end