summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch')
-rw-r--r--media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch
new file mode 100644
index 00000000000..d7b17fe904b
--- /dev/null
+++ b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch
@@ -0,0 +1,17 @@
+diff --git a/common/pluginmanager.cpp b/common/pluginmanager.cpp
+index 5354055..9a523d4 100644
+--- a/common/pluginmanager.cpp
++++ b/common/pluginmanager.cpp
+@@ -189,7 +189,11 @@ QString PluginManager::osDependentFileBaseName(const QString &plname)
+
+ QString PluginManager::getBaseDirPath()
+ {
+- QDir baseDir(qApp->applicationDirPath());
++ #if defined(Q_OS_LINUX)
++ QDir baseDir("/usr/share/meshlab");
++ #else
++ QDir baseDir(qApp->applicationDirPath());
++ #endif
+
+ #if defined(Q_OS_WIN)
+ // Windows: