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