Class: Launchy::Detect::NixDesktopEnvironment::Xfce
- Inherits:
-
Launchy::Detect::NixDesktopEnvironment
- Object
- Launchy::Detect::NixDesktopEnvironment
- Launchy::Detect::NixDesktopEnvironment::Xfce
- 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
.browser ⇒ Object
64 65 66 |
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 64 def self.browser ::Launchy::Argv.new( %w[ exo-open --launch WebBrowser ] ) end |
.is_current_desktop_environment? ⇒ Boolean
56 57 58 59 60 61 62 |
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 56 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 |