Sha256: eee4f80aa5f014e08c117f26677879f202dfb0b40aab17581e6625deccfbab14

Contents?: true

Size: 468 Bytes

Versions: 1

Compression:

Stored size: 468 Bytes

Contents

# frozen_string_literal: true

require 'fusuma/plugin/appmatcher/version'

require_relative 'appmatcher/x11.rb'
require_relative 'appmatcher/gnome.rb'

module Fusuma
  module Plugin
    module Appmatcher
      module_function

      # @return [Class]
      def backend_klass
        if ENV['DESKTOP_SESSION'] == 'ubuntu-wayland'
          Fusuma::Plugin::Appmatcher::Gnome
        else
          Fusuma::Plugin::Appmatcher::X11
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fusuma-plugin-appmatcher-0.1.0.pre lib/fusuma/plugin/appmatcher.rb