rsenseがドックに表示される時

いつのころからか、起こるようになったので、アドホックな対応を。

  • そもそもは -Dapple.awt.UIElement=true を設定しないといけないアプリケーションではないと思う(しなくてもDockに出ないはずだと思う)
  • javaのバージョンが関係してた気がするけど、その辺詳しくない

ので、pull reqとかはせずこんな感じで。

--- /Users/toqoz/brew/Cellar/rsense/0.3/libexec/bin/rsense.orig 2010-05-11 11:52:52.000000000 +0900
+++ /Users/toqoz/brew/Cellar/rsense/0.3/libexec/bin/rsense      2013-12-12 12:07:54.000000000 +0900
@@ -103,7 +103,7 @@

   def server_process(cont_proc = nil)
     begin
-      command = %W(java -cp #@classpath org.cx4a.rsense.Main script)
+      command = %W(java -cp -Dapple.awt.UIElement=true #@classpath org.cx4a.rsense.Main script)
       command += %W(--home=#@rsense_home --no-prompt --end-mark=#{END_MARK} --config=#@config)
       command << '--debug' if @debug
       command << "--log=#@log" if @log