Fix application startup issue

* platform.system() failed when called from gui thread