diff --git a/libyelp/yelp-settings.c b/libyelp/yelp-settings.c
index c202a05..07983bb 100644
--- a/libyelp/yelp-settings.c
+++ b/libyelp/yelp-settings.c
@@ -320,12 +320,12 @@ yelp_settings_constructed (GObject *object)
     if (env_classic)
         yelp_settings_set_if_token (settings, "platform:gnome-classic");
 
-    if (env_shell)
+    if (env_unity)
+        yelp_settings_set_if_token (settings, "platform:unity");
+    else if (env_shell)
         yelp_settings_set_if_token (settings, "platform:gnome-shell");
     else if (env_xfce)
         yelp_settings_set_if_token (settings, "platform:xfce");
-    else if (env_unity)
-        yelp_settings_set_if_token (settings, "platform:unity");
     else if (env_panel)
         yelp_settings_set_if_token (settings, "platform:gnome-panel");
 
