Place qt.conf next to executable
This commit is contained in:
+8
-2
@@ -940,7 +940,7 @@ void createQtConf(const QString &appDirPath)
|
|||||||
"Qml2Imports = qml\n";
|
"Qml2Imports = qml\n";
|
||||||
|
|
||||||
QString filePath = appDirPath + "/"; // Is picked up when placed next to the main executable
|
QString filePath = appDirPath + "/"; // Is picked up when placed next to the main executable
|
||||||
QString fileName = filePath + "qt.conf";
|
QString fileName = appBinaryPath + "/../qt.conf";
|
||||||
|
|
||||||
QDir().mkpath(filePath);
|
QDir().mkpath(filePath);
|
||||||
|
|
||||||
@@ -1034,7 +1034,7 @@ bool deployQmlImports(const QString &appDirPath, DeploymentInfo deploymentInfo,
|
|||||||
LogDebug() << qmlImportScannerPath << argumentList;
|
LogDebug() << qmlImportScannerPath << argumentList;
|
||||||
qmlImportScanner.start(qmlImportScannerPath, argumentList);
|
qmlImportScanner.start(qmlImportScannerPath, argumentList);
|
||||||
if (!qmlImportScanner.waitForStarted()) {
|
if (!qmlImportScanner.waitForStarted()) {
|
||||||
LogError() << "Could not start qmlimpoortscanner. Process error is" << qmlImportScanner.errorString();
|
LogError() << "Could not start qmlimportscanner. Process error is" << qmlImportScanner.errorString();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
qmlImportScanner.waitForFinished();
|
qmlImportScanner.waitForFinished();
|
||||||
@@ -1152,6 +1152,12 @@ void changeQtLibraries(const QString appPath, const QString &qtPath)
|
|||||||
|
|
||||||
bool checkAppImagePrerequisites(const QString &appDirPath)
|
bool checkAppImagePrerequisites(const QString &appDirPath)
|
||||||
{
|
{
|
||||||
|
if(fhsLikeMode == true){
|
||||||
|
/* In FHS-like mode, we assume that there will be a desktop file
|
||||||
|
* and icon file that appimagetool will be able to pick up */
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
QDirIterator iter(appDirPath, QStringList() << QString::fromLatin1("*.desktop"),
|
QDirIterator iter(appDirPath, QStringList() << QString::fromLatin1("*.desktop"),
|
||||||
QDir::Files, QDirIterator::Subdirectories);
|
QDir::Files, QDirIterator::Subdirectories);
|
||||||
if (!iter.hasNext()) {
|
if (!iter.hasNext()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user