lib/fusuma/plugin/appmatcher/gnome.rb in fusuma-plugin-appmatcher-0.2.3 vs lib/fusuma/plugin/appmatcher/gnome.rb in fusuma-plugin-appmatcher-0.3.0

- old
+ new

@@ -17,10 +17,10 @@ # fork process and watch signal # @return [Integer] Process id def watch_start @watch_start ||= begin - pid = UserSwitcher.new.as_user do |user| + pid = UserSwitcher.new.as_user(proctitle: self.class.name.underscore) do |user| @reader.close ENV["DBUS_SESSION_BUS_ADDRESS"] = "unix:path=/run/user/#{user.uid}/bus" register_on_application_changed(Matcher.new) end Process.detach(pid)