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

browsers, detect, fallback_browsers

Methods included from Launchy::DescendantTracker

#children, #find_child, #inherited

Class Method Details

.browserObject



62
63
64
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 62

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

.is_current_desktop_environment?Boolean

Returns:

  • (Boolean)


54
55
56
57
58
59
60
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 54

def self.is_current_desktop_environment?
  if Launchy::Application.find_executable( 'xprop' ) then
    %x[ xprop -root _DT_SAVE_MODE].include?("xfce")
  else
    false
  end
end