class Launchy::Detect::NixDesktopEnvironment
used by xdg-open from portland.freedesktop.org/
Currently this is Linux centric. The detection is based upon the detection
Detect the current desktop environment for *nix machines
def self.browsers
def self.browsers [browser, fallback_browsers].flatten end
def self.detect
If the current dekstop environment be detected, the return
Detect the current *nix desktop environment
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
def self.fallback_browsers
def self.fallback_browsers %w[firefox iceweasel seamonkey opera mozilla netscape galeon links lynx].map { |x| ::Launchy::Argv.new(x) } end