Class: Launchy::Detect::NixDesktopEnvironment::Gnome

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

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



49
50
51
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 49

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

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


44
45
46
47
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 44

def self.is_current_desktop_environment?
  ENV['GNOME_DESKTOP_SESSION_ID'] &&
    Launchy::Application.find_executable( 'gnome-open' )
end