class Launchy::Detect::NixDesktopEnvironment::Gnome - launchy-2.4.3 Documentation

# class Launchy::Detect::NixDesktopEnvironment::Gnome

### Public Class Methods

browser() click to toggle source

    # File lib/launchy/detect/nix_desktop_environment.rb, line 49
    def self.browser
      ::Launchy::Argv.new( 'gnome-open' )
    end

is_current_desktop_environment?() click to toggle source

    # File lib/launchy/detect/nix_desktop_environment.rb, line 44
    def self.is_current_desktop_environment?
      ENV['GNOME_DESKTOP_SESSION_ID'] &&
        Launchy::Application.find_executable( 'gnome-open' )
    end