Class: Launchy::Detect::NixDesktopEnvironment::Kde
- Inherits:
-
Launchy::Detect::NixDesktopEnvironment
- Object
- Launchy::Detect::NixDesktopEnvironment
- Launchy::Detect::NixDesktopEnvironment::Kde
- Defined in:
- lib/launchy/detect/nix_desktop_environment.rb
Overview
KDE desktop environment
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
43 44 45 |
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 43 def self.browser ::Launchy::Argv.new("kde-open") end |
.is_current_desktop_environment? ⇒ Boolean
38 39 40 41 |
# File 'lib/launchy/detect/nix_desktop_environment.rb', line 38 def self.is_current_desktop_environment? ENV.fetch("KDE_FULL_SESSION", nil) && Launchy::Application.find_executable("kde-open") end |