summarylogtreecommitdiffstats
path: root/plugin_dir.patch
blob: 1c84fdd69203d2a0fdf55891fd8a13a5a5839e50 (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 4fbe1e1a..4ee5c9ce 100644
--- a/src/common/pluginmanager.cpp
+++ b/src/common/pluginmanager.cpp
@@ -231,7 +231,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:
@@ -253,7 +253,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.");