Browse Source

Modify qt.conf

master
probonopd 8 years ago
committed by GitHub
parent
commit
731c08ad89
  1. 9
      shared/shared.cpp

9
shared/shared.cpp

@ -1155,19 +1155,20 @@ void createQtConf(const QString &appDirPath)
{ {
// Set Plugins and imports paths. These are relative to QCoreApplication::applicationDirPath() // Set Plugins and imports paths. These are relative to QCoreApplication::applicationDirPath()
// which is where the main executable resides; see http://doc.qt.io/qt-5/qt-conf.html // which is where the main executable resides; see http://doc.qt.io/qt-5/qt-conf.html
// See https://github.com/probonopd/linuxdeployqt/issues/ 75, 98, 99
if(fhsLikeMode){
QByteArray contents = "# Generated by linuxdeployqt\n" QByteArray contents = "# Generated by linuxdeployqt\n"
"# https://github.com/probonopd/linuxdeployqt/\n" "# https://github.com/probonopd/linuxdeployqt/\n"
"[Paths]\n" "[Paths]\n"
"Prefix = ../\n"
"Plugins = plugins\n" "Plugins = plugins\n"
"Imports = qml\n" "Imports = qml\n"
"Qml2Imports = qml\n"; "Qml2Imports = qml\n";
} else {
// Workaround for: https://github.com/probonopd/linuxdeployqt/issues/75
if(fhsLikeMode == true){
QByteArray contents = "# Generated by linuxdeployqt\n" QByteArray contents = "# Generated by linuxdeployqt\n"
"# https://github.com/probonopd/linuxdeployqt/\n" "# https://github.com/probonopd/linuxdeployqt/\n"
"[Paths]\n" "[Paths]\n"
"Prefix = ../../\n"
"Plugins = plugins\n" "Plugins = plugins\n"
"Imports = qml\n" "Imports = qml\n"
"Qml2Imports = qml\n"; "Qml2Imports = qml\n";

Loading…
Cancel
Save