Blob Blame History Raw
diff -rupN --no-dereference qgis-3.32.1/src/core/qgsapplication.cpp qgis-3.32.1-new/src/core/qgsapplication.cpp
--- qgis-3.32.1/src/core/qgsapplication.cpp	2023-07-21 14:13:30.000000000 +0200
+++ qgis-3.32.1-new/src/core/qgsapplication.cpp	2023-07-26 10:16:54.630332413 +0200
@@ -356,6 +356,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 );