use the correct state, if the application is desktop