cleaned up how preferences get set for desktop applications