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



81
82
83
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 81

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

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


77
78
79
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 77

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