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



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

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

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


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

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