diff --git a/src/fileutils.cpp b/src/fileutils.cpp
index 66422f63e9414a0a78f04973d42156700357ce5c..5148f7c708d470dccd3a1a84e30a8c7dc0e57069 100644
--- a/src/fileutils.cpp
+++ b/src/fileutils.cpp
@@ -532,10 +532,6 @@ get_config_dir()
         config_path = paths[0];
     return config_path;
 
-#elif defined( __APPLE__ )
-    std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR
-        + "Library" + DIR_SEPARATOR_STR + "Application Support"
-        + DIR_SEPARATOR_STR + PACKAGE;
 #elif defined(RING_UWP)
     std::vector<std::string> paths;
     emitSignal<DRing::ConfigurationSignal::GetAppDataPath>("", &paths);
@@ -548,10 +544,15 @@ get_config_dir()
             RING_DBG("Cannot create directory: %s!", config_path.c_str());
     }
     return config_path;
+#else
+#if defined(__APPLE__)
+    std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR
+        + "Library" + DIR_SEPARATOR_STR + "Application Support"
+        + DIR_SEPARATOR_STR + PACKAGE;
 #else
     std::string configdir = fileutils::get_home_dir() + DIR_SEPARATOR_STR +
                             ".config" + DIR_SEPARATOR_STR + PACKAGE;
-
+#endif
     const std::string xdg_env(XDG_CONFIG_HOME);
     if (not xdg_env.empty())
         configdir = xdg_env + DIR_SEPARATOR_STR + PACKAGE;