Skip to content
Permalink
Browse files

BSD patches

  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 27, 2019
1 parent c748aac commit 34a0650177f51ee3b38bbfc686a59e230adfc5ab
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/app/main.cpp
  2. +1 −1 src/app/qgisapp.cpp
  3. +1 −1 src/server/qgsserverplugins.cpp
@@ -1032,15 +1032,15 @@ int main( int argc, char *argv[] )
QCoreApplication::addLibraryPath( QApplication::applicationDirPath()
+ QDir::separator() + "qtplugins" );
#endif
#ifdef Q_OS_MAC
#if defined(Q_OS_UNIX)
// Resulting libraryPaths has critical QGIS plugin paths first, then any Qt plugin paths, then
// any dev-defined paths (in app's qt.conf) and/or user-defined paths (QT_PLUGIN_PATH env var).
//
// NOTE: Minimizes, though does not fully protect against, crashes due to dev/user-defined libs
// built against a different Qt/QGIS, while still allowing custom C++ plugins to load.
QStringList libPaths( QCoreApplication::libraryPaths() );

QgsDebugMsgLevel( QStringLiteral( "Initial macOS QCoreApplication::libraryPaths: %1" )
QgsDebugMsgLevel( QStringLiteral( "Initial macOS/UNIX QCoreApplication::libraryPaths: %1" )
.arg( libPaths.join( " " ) ), 4 );

// Strip all critical paths that should always be prepended
@@ -10473,7 +10473,7 @@ class QgsPythonRunnerImpl : public QgsPythonRunner
void QgisApp::loadPythonSupport()
{
QString pythonlibName( QStringLiteral( "qgispython" ) );
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
#if defined(Q_OS_UNIX)
pythonlibName.prepend( QgsApplication::libraryPath() );
#endif
#ifdef __MINGW32__
@@ -39,7 +39,7 @@ QStringList &QgsServerPlugins::serverPlugins()
bool QgsServerPlugins::initPlugins( QgsServerInterface *interface )
{
QString pythonlibName( QStringLiteral( "qgispython" ) );
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
#if defined(Q_OS_UNIX)
pythonlibName.prepend( QgsApplication::libraryPath() );
#endif
#ifdef __MINGW32__

0 comments on commit 34a0650

Please sign in to comment.
You can’t perform that action at this time.