class Launchy::Detect::NixDesktopEnvironment::Xfce - launchy-2.4.3 Documentation

# class Launchy::Detect::NixDesktopEnvironment::Xfce

### Public Class Methods

browser() click to toggle source

    # File lib/launchy/detect/nix_desktop_environment.rb, line 63
    def self.browser
      ::Launchy::Argv.new( %w[ exo-open --launch WebBrowser ] )
    end

is_current_desktop_environment?() click to toggle source

    # File lib/launchy/detect/nix_desktop_environment.rb, line 55
    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