Skip to content

Commit bb7762c

Browse files
lbartolettinyalldawson
authored andcommittedMar 7, 2019
BSD patches
(cherry picked from commit 34a0650)
1 parent 4b639bf commit bb7762c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎src/app/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,15 +1033,15 @@ int main( int argc, char *argv[] )
10331033
QCoreApplication::addLibraryPath( QApplication::applicationDirPath()
10341034
+ QDir::separator() + "qtplugins" );
10351035
#endif
1036-
#ifdef Q_OS_MAC
1036+
#if defined(Q_OS_UNIX)
10371037
// Resulting libraryPaths has critical QGIS plugin paths first, then any Qt plugin paths, then
10381038
// any dev-defined paths (in app's qt.conf) and/or user-defined paths (QT_PLUGIN_PATH env var).
10391039
//
10401040
// NOTE: Minimizes, though does not fully protect against, crashes due to dev/user-defined libs
10411041
// built against a different Qt/QGIS, while still allowing custom C++ plugins to load.
10421042
QStringList libPaths( QCoreApplication::libraryPaths() );
10431043

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

10471047
// Strip all critical paths that should always be prepended

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10256,7 +10256,7 @@ class QgsPythonRunnerImpl : public QgsPythonRunner
1025610256
void QgisApp::loadPythonSupport()
1025710257
{
1025810258
QString pythonlibName( QStringLiteral( "qgispython" ) );
10259-
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
10259+
#if defined(Q_OS_UNIX)
1026010260
pythonlibName.prepend( QgsApplication::libraryPath() );
1026110261
#endif
1026210262
#ifdef __MINGW32__

‎src/server/qgsserverplugins.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ QStringList &QgsServerPlugins::serverPlugins()
4141
bool QgsServerPlugins::initPlugins( QgsServerInterface *interface )
4242
{
4343
QString pythonlibName( QStringLiteral( "qgispython" ) );
44-
#if defined(Q_OS_MAC) || defined(Q_OS_LINUX)
44+
#if defined(Q_OS_UNIX)
4545
pythonlibName.prepend( QgsApplication::libraryPath() );
4646
#endif
4747
#ifdef __MINGW32__

0 commit comments

Comments
 (0)
Please sign in to comment.