Blame meshlab-2016.12-shader-path.patch

0994ec
--- a/src/meshlabplugins/render_gdp/meshrender.cpp
0994ec
+++ b/src/meshlabplugins/render_gdp/meshrender.cpp
0994ec
@@ -39,7 +39,7 @@ void MeshShaderRenderPlugin::initActionL
0994ec
 	qaNone->setCheckable(false);
0994ec
 	actionList << qaNone;*/
0994ec
 
0994ec
-	QDir shadersDir = QDir(qApp->applicationDirPath());
0994ec
+	QDir shadersDir = QDir("/usr/share/meshlab");
0994ec
 #if defined(Q_OS_WIN)
0994ec
 	QString d = shadersDir.dirName();
0994ec
 	QString dLower = d.toLower();
0994ec
--- a/src/meshlabplugins/render_gdp/shaderDialog.cpp
0994ec
+++ b/src/meshlabplugins/render_gdp/shaderDialog.cpp
0994ec
@@ -317,7 +317,7 @@ void ShaderDialog::changeTexturePath(int
0994ec
 void ShaderDialog::browseTexturePath(int i) {
0994ec
 	QFileDialog fd(0,"Choose new texture");
0994ec
 
0994ec
-	QDir shadersDir = QDir(qApp->applicationDirPath());
0994ec
+	QDir shadersDir = QDir("/usr/share/meshlab");
0994ec
 #if defined(Q_OS_WIN)
0994ec
 	if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
0994ec
 		shadersDir.cdUp();
0994ec
--- a/src/plugins_unsupported/render_rfx/render_rfx.cpp
0994ec
+++ b/src/plugins_unsupported/render_rfx/render_rfx.cpp
0994ec
@@ -55,7 +55,7 @@ QList<QAction*> RenderRFX::actions()
0994ec
 
0994ec
 void RenderRFX::initActionList()
0994ec
 {
0994ec
-	QDir shadersDir = PluginManager::getBaseDirPath();
0994ec
+	QDir shadersDir = QDir("/usr/share/meshlab");
0994ec
 
0994ec
 #if defined(Q_OS_WIN)
0994ec
 	if (shadersDir.dirName() == "debug"   ||
0994ec
--- a/src/plugins_experimental/render_splatpyramid/dialog.cpp
0994ec
+++ b/src/plugins_experimental/render_splatpyramid/dialog.cpp
0994ec
@@ -123,7 +123,7 @@ void Dialog::changeTexturePath(int i) {
0994ec
 void Dialog::browseTexturePath(int i) {
0994ec
   QFileDialog fd(0,"Choose new texture");
0994ec
 
0994ec
-  QDir shadersDir = QDir(qApp->applicationDirPath());
0994ec
+  QDir shadersDir = QDir("/usr/share/meshlab");
0994ec
 #if defined(Q_OS_WIN)
0994ec
   if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release")
0994ec
 	shadersDir.cdUp();
0994ec
--- a/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc
0994ec
+++ b/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc
0994ec
@@ -85,7 +85,7 @@ void PyramidPointRendererPlugin::Init(QA
0994ec
 		objects[i].setRendererType( render_mode );
0994ec
 
0994ec
   	/// Sets the path to the meshlab's shaders directory
0994ec
-  	QDir shadersDir = QDir(qApp->applicationDirPath());
0994ec
+  	QDir shadersDir = QDir("/usr/share/meshlab");
0994ec
 #if defined(Q_OS_WIN)
0994ec
 	if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins"  )
0994ec
 		shadersDir.cdUp();
0994ec
--- a/src/plugins_unsupported/render_rm/rmmeshrender.cpp
0994ec
+++ b/src/plugins_unsupported/render_rm/rmmeshrender.cpp
0994ec
@@ -63,7 +63,7 @@ QList<QAction*> RmMeshShaderRenderPlugin
0994ec
 
0994ec
 void RmMeshShaderRenderPlugin::initActionList() {
0994ec
 
0994ec
-	QDir shadersDir = QDir(qApp->applicationDirPath());
0994ec
+	QDir shadersDir = QDir("/usr/share/meshlab");
0994ec
 #if defined(Q_OS_WIN)
0994ec
 	if (shadersDir.dirName() == "debug" ||
0994ec
 	    shadersDir.dirName() == "release" ||