File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1033,15 +1033,15 @@ int main( int argc, char *argv[] )
1033
1033
QCoreApplication::addLibraryPath ( QApplication::applicationDirPath ()
1034
1034
+ QDir::separator () + " qtplugins" );
1035
1035
#endif
1036
- #ifdef Q_OS_MAC
1036
+ #if defined(Q_OS_UNIX)
1037
1037
// Resulting libraryPaths has critical QGIS plugin paths first, then any Qt plugin paths, then
1038
1038
// any dev-defined paths (in app's qt.conf) and/or user-defined paths (QT_PLUGIN_PATH env var).
1039
1039
//
1040
1040
// NOTE: Minimizes, though does not fully protect against, crashes due to dev/user-defined libs
1041
1041
// built against a different Qt/QGIS, while still allowing custom C++ plugins to load.
1042
1042
QStringList libPaths ( QCoreApplication::libraryPaths () );
1043
1043
1044
- QgsDebugMsgLevel ( QStringLiteral ( " Initial macOS QCoreApplication::libraryPaths: %1" )
1044
+ QgsDebugMsgLevel ( QStringLiteral ( " Initial macOS/UNIX QCoreApplication::libraryPaths: %1" )
1045
1045
.arg ( libPaths.join ( " " ) ), 4 );
1046
1046
1047
1047
// Strip all critical paths that should always be prepended
Original file line number Diff line number Diff line change @@ -10256,7 +10256,7 @@ class QgsPythonRunnerImpl : public QgsPythonRunner
10256
10256
void QgisApp::loadPythonSupport()
10257
10257
{
10258
10258
QString pythonlibName( QStringLiteral( "qgispython" ) );
10259
- #if defined(Q_OS_MAC) || defined(Q_OS_LINUX )
10259
+ #if defined(Q_OS_UNIX )
10260
10260
pythonlibName.prepend( QgsApplication::libraryPath() );
10261
10261
#endif
10262
10262
#ifdef __MINGW32__
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ QStringList &QgsServerPlugins::serverPlugins()
41
41
bool QgsServerPlugins::initPlugins ( QgsServerInterface *interface )
42
42
{
43
43
QString pythonlibName ( QStringLiteral ( " qgispython" ) );
44
- #if defined(Q_OS_MAC) || defined(Q_OS_LINUX )
44
+ #if defined(Q_OS_UNIX )
45
45
pythonlibName.prepend ( QgsApplication::libraryPath () );
46
46
#endif
47
47
#ifdef __MINGW32__
You can’t perform that action at this time.
0 commit comments