From: Teemu Ikonen <tpikonen@gmail.com>
Date: Fri, 6 Dec 2019 16:57:50 -0600
Subject: Hardcode shadersDir to the correct path in Debian in various plugins

---
 src/meshlabplugins/render_gdp/meshrender.cpp   | 2 +-
 src/meshlabplugins/render_gdp/shaderDialog.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/meshlabplugins/render_gdp/meshrender.cpp b/src/meshlabplugins/render_gdp/meshrender.cpp
index 6a63d4c..fba5476 100644
--- a/src/meshlabplugins/render_gdp/meshrender.cpp
+++ b/src/meshlabplugins/render_gdp/meshrender.cpp
@@ -44,7 +44,7 @@ void MeshShaderRenderPlugin::initActionList() {
 	qaNone->setCheckable(false);
 	actionList << qaNone;*/
 
-	QDir shadersDir = QDir(qApp->applicationDirPath());
+	QDir shadersDir = QDir("/usr/share/meshlab");
 #if defined(Q_OS_WIN)
 	QString d = shadersDir.dirName();
 	QString dLower = d.toLower();
diff --git a/src/meshlabplugins/render_gdp/shaderDialog.cpp b/src/meshlabplugins/render_gdp/shaderDialog.cpp
index 1315757..9ae503a 100644
--- a/src/meshlabplugins/render_gdp/shaderDialog.cpp
+++ b/src/meshlabplugins/render_gdp/shaderDialog.cpp
@@ -317,7 +317,7 @@ void ShaderDialog::changeTexturePath(int i) {
 void ShaderDialog::browseTexturePath(int i) {
 	QFileDialog fd(0,"Choose new texture");
 
-	QDir shadersDir = QDir(qApp->applicationDirPath());
+	QDir shadersDir = QDir("/usr/share/meshlab");
 #if defined(Q_OS_WIN)
 	if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
 		shadersDir.cdUp();
