qgis/qgis-serverprefix.patch
2026-08-28 19:36:06 +02:00

15 lines
757 B
Diff

diff -rupN --no-dereference qgis-4.2.2/src/core/qgsapplication.cpp qgis-4.2.2-new/src/core/qgsapplication.cpp
--- qgis-4.2.2/src/core/qgsapplication.cpp 2026-08-28 14:04:16.000000000 +0200
+++ qgis-4.2.2-new/src/core/qgsapplication.cpp 2026-08-28 19:07:12.643868903 +0200
@@ -457,6 +457,11 @@ void QgsApplication::init( QString profi
{
myDir.cdUp();
}
+ // Fix for server which is one level deeper in /usr/libexec/qgis
+ else if ( applicationDirPath().contains( QStringLiteral( "libexec/qgis" ) ) )
+ {
+ myDir.cdUp();
+ }
myDir.cdUp(); // Go from /usr/bin or /usr/lib (for server) to /usr
QString myPrefix = myDir.absolutePath();
setPrefixPath( myPrefix, true );