Continue FHS-like mode

This commit is contained in:
probonopd
2016-11-19 13:37:52 +01:00
parent 6fad088ed3
commit 05f2f03a88
2 changed files with 14 additions and 9 deletions
+3 -7
View File
@@ -120,20 +120,16 @@ int main(int argc, char **argv)
}
QString appDirPath;
if(fhsLikeMode == false){
appDirPath = appDir;
} else {
appDirPath = QDir::cleanPath(fhsPrefix + "/../");
}
qDebug() << "appDirPath:" << appDirPath;
QString relativeBinPath;
if(fhsLikeMode == false){
appDirPath = appDir;
relativeBinPath = appName;
} else {
appDirPath = QDir::cleanPath(fhsPrefix + "/../");
QString relativePrefix = fhsPrefix.replace(appDirPath+"/", "");
relativeBinPath = relativePrefix + "/bin/" + appName;
}
qDebug() << "appDirPath:" << appDirPath;
qDebug() << "relativeBinPath:" << relativeBinPath;
QFile appRun(appDirPath + "/AppRun");