summarylogtreecommitdiffstats
path: root/plugin_dir.patch
blob: 7e373e512fe3be9e4e4a0a5e2db373b74e9c2e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/common/pluginmanager.cpp b/src/common/pluginmanager.cpp
index 5354055c..12386a90 100644
--- a/src/common/pluginmanager.cpp
+++ meshlab/src/common/pluginmanager.cpp
@@ -189,7 +189,7 @@ QString PluginManager::osDependentFileBaseName(const QString &plname)
 
 QString PluginManager::getBaseDirPath()
 {
-  QDir baseDir(qApp->applicationDirPath());
+  QDir baseDir("/usr/share/meshlab");
 
 #if defined(Q_OS_WIN)
   // Windows:
@@ -211,7 +211,7 @@ QString PluginManager::getBaseDirPath()
 
 QString PluginManager::getDefaultPluginDirPath()
 {
-  QDir pluginsDir(getBaseDirPath());
+  QDir pluginsDir("/usr/lib/meshlab");
   if(!pluginsDir.exists("plugins"))
     //QMessageBox::warning(0,"Meshlab Initialization","Serious error. Unable to find the plugins directory.");
     qDebug("Meshlab Initialization: Serious error. Unable to find the plugins directory.");