def run
      running!
      @current_app = Application.create(:debug => debug?)

      while true
        sleep 1 # TODO: move to config
        focus_changed if @current_app.finished? || backup?
      end
    end
def run
      running!
      @current_app = Application.create(:debug => debug?)

      while true
        sleep 1 # TODO: move to config
        focus_changed if @current_app.finished? || backup?
      end
    end
Run the loop