class Launchy::Detect::NixDesktopEnvironment
Detect
the current desktop environment for *nix machines Currently this is Linux centric. The detection is based upon the detection used by xdg-open from portland.freedesktop.org/
Public Class Methods
Source
# File lib/launchy/detect/nix_desktop_environment.rb, line 28 def self.browsers [browser, fallback_browsers].flatten end
Source
# File lib/launchy/detect/nix_desktop_environment.rb, line 18 def self.detect found = find_child(:is_current_desktop_environment?) Launchy.log("Current Desktop environment not found. #{Launchy.bug_report_message}") unless found found end
Detect
the current *nix desktop environment
If the current dekstop environment be detected, the return NixDekstopEnvironment::Unknown
Source
# File lib/launchy/detect/nix_desktop_environment.rb, line 24 def self.fallback_browsers %w[firefox iceweasel seamonkey opera mozilla netscape galeon links lynx].map { |x| ::Launchy::Argv.new(x) } end