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



58
59
60
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 58

def self.browser
  'exo-open'
end

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


50
51
52
53
54
55
56
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 50

def self.is_current_desktop_environment?
  if Launchy::Application.find_executable( 'xprop' ) then
    %x[ xprop -root _DT_SAVE_MODE | grep ' = \"xfce\"$' ].strip.size > 0
  else
    false
  end
end