diff --git a/src/app/main.cpp b/src/app/main.cpp index b0ff19def4d3906658511fde5bab52235c6d3d5b..c364b4d4b7bbf6c1d7adf3ef23318163fd13c790 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -222,9 +222,8 @@ static inline QStringList getPluginPaths() // "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux // "~/Library/Application Support/QtProject/Qt Creator" on Mac pluginPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation); -#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC) - pluginPath += QLatin1String("/data"); -#endif + if (Utils::HostOsInfo::isAnyUnixHost() && !Utils::HostOsInfo::isMacHost()) + pluginPath += QLatin1String("/data"); pluginPath += QLatin1Char('/') + QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR) + QLatin1Char('/');