Adding isDesktop method, fixes #22