diff -up meshlab-2016.12/src/meshlabplugins/render_gdp/meshrender.cpp.shader-path meshlab-2016.12/src/meshlabplugins/render_gdp/meshrender.cpp --- meshlab-2016.12/src/meshlabplugins/render_gdp/meshrender.cpp.shader-path 2017-07-19 14:53:45.175910714 -0400 +++ meshlab-2016.12/src/meshlabplugins/render_gdp/meshrender.cpp 2017-07-19 14:54:00.361592230 -0400 @@ -38,7 +38,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) if (shadersDir.dirName() == "debug" || shadersDir.dirName() == "release" || shadersDir.dirName() == "plugins") shadersDir.cdUp(); diff -up meshlab-2016.12/src/meshlabplugins/render_gdp/shaderDialog.cpp.shader-path meshlab-2016.12/src/meshlabplugins/render_gdp/shaderDialog.cpp --- meshlab-2016.12/src/meshlabplugins/render_gdp/shaderDialog.cpp.shader-path 2017-07-19 14:54:12.806330201 -0400 +++ meshlab-2016.12/src/meshlabplugins/render_gdp/shaderDialog.cpp 2017-07-19 14:54:40.343692895 -0400 @@ -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(); diff -up meshlab-2016.12/src/meshlabplugins/render_rfx/render_rfx.cpp.shader-path meshlab-2016.12/src/meshlabplugins/render_rfx/render_rfx.cpp --- meshlab-2016.12/src/meshlabplugins/render_rfx/render_rfx.cpp.shader-path 2017-07-19 14:54:59.119258366 -0400 +++ meshlab-2016.12/src/meshlabplugins/render_rfx/render_rfx.cpp 2017-07-19 14:55:31.470509651 -0400 @@ -55,7 +55,7 @@ QList RenderRFX::actions() void RenderRFX::initActionList() { - QDir shadersDir = PluginManager::getBaseDirPath(); + QDir shadersDir = QDir("/usr/share/meshlab"); #if defined(Q_OS_WIN) if (shadersDir.dirName() == "debug" || diff -up meshlab-2016.12/src/plugins_experimental/render_splatpyramid/dialog.cpp.shader-path meshlab-2016.12/src/plugins_experimental/render_splatpyramid/dialog.cpp --- meshlab-2016.12/src/plugins_experimental/render_splatpyramid/dialog.cpp.shader-path 2017-07-19 14:55:51.756040177 -0400 +++ meshlab-2016.12/src/plugins_experimental/render_splatpyramid/dialog.cpp 2017-07-19 14:56:10.157614303 -0400 @@ -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(); diff -up meshlab-2016.12/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc.shader-path meshlab-2016.12/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc --- meshlab-2016.12/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc.shader-path 2017-07-19 14:56:51.012668782 -0400 +++ meshlab-2016.12/src/plugins_experimental/render_splatpyramid/splat_pyramid.cc 2017-07-19 14:57:18.018043788 -0400 @@ -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(); diff -up meshlab-2016.12/src/plugins_unsupported/render_rm/rmmeshrender.cpp.shader-path meshlab-2016.12/src/plugins_unsupported/render_rm/rmmeshrender.cpp --- meshlab-2016.12/src/plugins_unsupported/render_rm/rmmeshrender.cpp.shader-path 2017-07-19 14:57:37.939582738 -0400 +++ meshlab-2016.12/src/plugins_unsupported/render_rm/rmmeshrender.cpp 2017-07-20 10:30:49.812120364 -0400 @@ -63,7 +63,7 @@ QList 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" ||