The attached patch together with adding export CXXFLAGS:=$(CXXFLAGS) -DDEBIAN_PLUGIN_DIR="\"/usr/lib/$(DEBARCH)/cloudcompare/plugins\""
to debian/rules seem to improve things. Best, Gard
From: Gard Spreemann <[email protected]> Date: Wed, 18 Mar 2026 09:47:29 +0100 Subject: Plugin path --- libs/CCAppCommon/src/ccApplicationBase.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/libs/CCAppCommon/src/ccApplicationBase.cpp b/libs/CCAppCommon/src/ccApplicationBase.cpp index 8d505a2..2108b68 100644 --- a/libs/CCAppCommon/src/ccApplicationBase.cpp +++ b/libs/CCAppCommon/src/ccApplicationBase.cpp @@ -214,24 +214,9 @@ void ccApplicationBase::setupPaths() m_shaderPath = (appDir.absolutePath() + "/shaders"); m_translationPath = (appDir.absolutePath() + "/translations"); #elif defined(Q_OS_LINUX) - // Shaders & plugins are relative to the bin directory where the executable is found - QDir theDir = appDir; - - if (theDir.dirName() == "bin") - { - theDir.cdUp(); - - m_pluginPaths << (theDir.absolutePath() + "/lib/cloudcompare/plugins"); - m_shaderPath = (theDir.absolutePath() + "/share/cloudcompare/shaders"); - m_translationPath = (theDir.absolutePath() + "/share/cloudcompare/translations"); - } - else - { - // Choose a reasonable default to look in - m_pluginPaths << "/usr/lib/cloudcompare/plugins"; - m_shaderPath = "/usr/share/cloudcompare/shaders"; - m_translationPath = "/usr/share/cloudcompare/translations"; - } + m_pluginPaths << DEBIAN_PLUGIN_DIR; + m_shaderPath = "/usr/share/cloudcompare/shaders"; + m_translationPath = "/usr/share/cloudcompare/translations"; #else #warning Need to specify the shader path for this OS. #endif
signature.asc
Description: PGP signature

