@@ -810,7 +810,7 @@ DeploymentInfo deployQtLibraries(const QString &appDirPath, const QStringList &a
810
810
setenv (" LD_LIBRARY_PATH" ,newPath.toUtf8 ().constData (),1 );
811
811
}
812
812
813
- if (qtLibsPath.startsWith (" /usr/" )){
813
+ if (qtLibsPath.startsWith (" /usr/" ) && !qtLibsPath. startsWith ( " /usr/local " ) ){
814
814
LogError () << " Bundling Qt provided by distributions is not yet supported by this tool." ;
815
815
LogError () << " Please see https://github.com/probonopd/linuxdeployqt/issues/79 and" ;
816
816
LogError () << " submit a Pull Request to implement this." ;
@@ -1076,12 +1076,9 @@ bool deployQmlImports(const QString &appDirPath, DeploymentInfo deploymentInfo,
1076
1076
}
1077
1077
1078
1078
argumentList.append ( " -importPath" );
1079
- argumentList.append (qmlImportsPath );
1079
+ argumentList.append (qtToBeBundledInfo. value ( " QT_INSTALL_QML " ) );
1080
1080
1081
- argumentList.append ( " -importPath" );
1082
- argumentList.append (qtToBeBundledInfo.value (" QT_INSTALL_QML " ));
1083
-
1084
- LogDebug () << " qmlImportsPath:" << qmlImportsPath;
1081
+ LogDebug () << " qmlImportsPath (QT_INSTALL_QML):" << qtToBeBundledInfo.value (" QT_INSTALL_QML" );
1085
1082
1086
1083
// run qmlimportscanner
1087
1084
QProcess qmlImportScanner;
@@ -1168,7 +1165,7 @@ bool deployQmlImports(const QString &appDirPath, DeploymentInfo deploymentInfo,
1168
1165
if (deploymentInfo.deployedLibraries .contains (" QtWidgets" ) && qtQuickContolsInUse) {
1169
1166
LogNormal () << " Deploying QML import QtQuick/PrivateWidgets" ;
1170
1167
QString name = " QtQuick/PrivateWidgets" ;
1171
- QString path = qmlImportsPath + QLatin1Char (' /' ) + name;
1168
+ QString path = qtToBeBundledInfo. value ( " QT_INSTALL_QML " ) + QLatin1Char (' /' ) + name;
1172
1169
deployQmlImport (appDirPath, deploymentInfo.rpathsUsed , path, name);
1173
1170
LogNormal () << " " ;
1174
1171
}
0 commit comments