Blob Blame History Raw
diff -rupN --no-dereference qgis-3.28.1/src/core/qgsapplication.cpp qgis-3.28.1-new/src/core/qgsapplication.cpp
--- qgis-3.28.1/src/core/qgsapplication.cpp	2022-11-18 13:10:21.000000000 +0100
+++ qgis-3.28.1-new/src/core/qgsapplication.cpp	2022-11-18 22:47:36.864059524 +0100
@@ -369,6 +369,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 );