forked from qt-creator/qt-creator
Unbreak user-installed plugin loading on non-Linux
There is no "data" subdirectory on Windows and OS X.
Broke in 1d5091e48f
Change-Id: I1c5e5b60847028c9f3d734eeb6995e99013162b1
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
@@ -218,8 +218,10 @@ static inline QStringList getPluginPaths()
|
||||
// "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
|
||||
// "$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)
|
||||
+ QLatin1String("/data");
|
||||
pluginPath = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
|
||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
|
||||
pluginPath += QLatin1String("/data");
|
||||
#endif
|
||||
pluginPath += QLatin1Char('/')
|
||||
+ QLatin1String(Core::Constants::IDE_SETTINGSVARIANT_STR)
|
||||
+ QLatin1Char('/');
|
||||
|
Reference in New Issue
Block a user