function to detect if running on the desktop