Class: Launchy::Detect::NixDesktopEnvironment::Xfce

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



54
55
56
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 54

def self.browser
  'exo-open'
end

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


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

def self.is_current_desktop_environment?
  %x[ xprop -root _DT_SAVE_MODE | grep ' = \"xfce\"$' ].strip.size > 0
end