Add option to force desktop environment

This adds the function to force a desktop environment. We might think to add it also to global storage.