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

detect, fallback_browsers

Methods included from Launchy::DescendantTracker

#children, #find_child, #inherited

Class Method Details

.browserObject



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

def self.browser
  'gnome-open'
end

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 40

def self.is_current_desktop_environment?
  ENV['GNOME_DESKTOP_SESSION_ID']
end