Browse Source

Simplify findAppBinary

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

8
shared/shared.cpp

@ -281,15 +281,13 @@ QString findAppBinary(const QString &appDirPath)
// FIXME: Do without the need for an AppRun symlink // FIXME: Do without the need for an AppRun symlink
// by passing appBinaryPath from main.cpp here // by passing appBinaryPath from main.cpp here
QString parentDir = QDir::cleanPath(QFileInfo(appDirPath).path()); binaryPath = appDirPath + "/AppRun";
QString appDir = QDir::cleanPath(QFileInfo(appDirPath).baseName());
binaryPath = parentDir + "/" + appDir + "/AppRun";
if (QFile::exists(binaryPath)) if (QFile::exists(binaryPath))
return binaryPath; return binaryPath;
LogError() << "Could not find bundle binary for" << appDirPath;
return QString(); LogError() << "Could not find bundle binary for" << appDirPath << "at" << binaryPath;
exit(1);
} }
QStringList findAppLibraries(const QString &appDirPath) QStringList findAppLibraries(const QString &appDirPath)

Loading…
Cancel
Save