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/
Detect the current *nix desktop environment
If the current dekstop environment be detected, the return NixDekstopEnvironment::Unknown
# File lib/launchy/detect/nix_desktop_environment.rb, line 15 def self.detect found = find_child( :is_current_desktop_environment? ) Launchy.log("Current Desktop environment not found. #{Launchy.bug_report_message}") unless found return found end
# File lib/launchy/detect/nix_desktop_environment.rb, line 21 def self.fallback_browsers %w[ firefox seamonkey opera mozilla netscape galeon ] end