From 577b5f577ef769fa9a43616e8c4623bfce8084a7 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 11 Dec 2024 09:21:31 +0100 Subject: [PATCH] Fix the loading of C++ plugins from user directory `appInfo().userPluginsRoot` already contains the versioned directory for the "current" version. Before adding all the backwards compatible version directories we need to step up once. Amends 165ad2784e41faa5b7b388a4762e4f27f93ee405 Change-Id: I73456629654ff5f65dd8a2a9c2fc1d935a600d5f Reviewed-by: Marcus Tillmanns --- src/app/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 1767cbade16..365887dfc4e 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -196,7 +196,7 @@ static inline FilePaths 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 - const FilePath userPluginPath = appInfo().userPluginsRoot; + const FilePath userPluginPath = appInfo().userPluginsRoot.parentDir(); // Qt Creator X.Y.Z can load plugins from X.Y.(Z-1) etc, so add current and previous // patch versions