lib/fusuma/plugin/inputs/appmatcher_input.rb in fusuma-plugin-appmatcher-0.1.6 vs lib/fusuma/plugin/inputs/appmatcher_input.rb in fusuma-plugin-appmatcher-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-require_relative '../appmatcher.rb'
+require_relative "../appmatcher"
module Fusuma
module Plugin
module Inputs
# Get active application's name
@@ -11,15 +11,15 @@
def io
@backend ||= Appmatcher.backend_klass.new
@pid ||= begin
- pid = @backend.watch_start
- # NOTE: Closing the parent process's pipe
- @backend.writer.close
+ pid = @backend.watch_start
+ # NOTE: Closing the parent process's pipe
+ @backend.writer.close
- pid
- end
+ pid
+ end
@backend.reader
end
end
end