blob: 50b73028f30330eda00be81214fbb5f805e4f7ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From c8f6c325c5f5170bb473c41ee716b781d37bdd41 Mon Sep 17 00:00:00 2001
From: Markus Diem <diemmarkus@gmail.com>
Date: Mon, 27 Jul 2020 13:19:01 +0200
Subject: [PATCH] fixes plugin path for fedora
- thanks @tieugene
- beta version: 3.17
---
ImageLounge/src/DkCore/DkPluginManager.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- a/ImageLounge/src/DkCore/DkPluginManager.cpp
+++ b/ImageLounge/src/DkCore/DkPluginManager.cpp
@@ -62,6 +62,7 @@
#include <QAction>
#include <QMenu>
#include <QJsonValue>
+#include <QLibraryInfo>
#pragma warning(pop) // no warnings from includes - end
#ifdef QT_NO_DEBUG_OUTPUT
@@ -1309,7 +1310,7 @@ void DkPluginManager::createPluginsPath() {
#ifdef Q_OS_WIN
QDir pluginsDir = QCoreApplication::applicationDirPath() + "/plugins";
#else
- QDir pluginsDir = QCoreApplication::applicationDirPath() + "/../lib/nomacs-plugins/";
+ QDir pluginsDir = QLibraryInfo::location(QLibraryInfo::LibrariesPath) + "/nomacs-plugins/";
#endif // Q_OS_WIN
if (!pluginsDir.exists())
|