make desktop work nicely in daemon mode