mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-10-08 00:01:32 +02:00
Fix opening Tape and Puzzle inside AppImage.
This commit is contained in:
parent
815f8bf7b8
commit
443f35c0d2
|
@ -79,6 +79,10 @@
|
|||
#include "../vmisc/compatibility.h"
|
||||
#endif
|
||||
|
||||
#if defined(APPIMAGE) && defined(Q_OS_LINUX)
|
||||
#include "../vmisc/appimage.h"
|
||||
#endif // defined(APPIMAGE) && defined(Q_OS_LINUX)
|
||||
|
||||
using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
QT_WARNING_PUSH
|
||||
|
@ -101,12 +105,16 @@ auto AppFilePath(const QString &appName) -> QString
|
|||
const QString executableSuffix;
|
||||
#endif
|
||||
|
||||
#if defined(APPIMAGE) && defined(Q_OS_LINUX)
|
||||
return AppImageRoot() + BINDIR + '/'_L1 + appName;
|
||||
#else
|
||||
QFileInfo canonicalFile(
|
||||
QStringLiteral("%1/%2").arg(QCoreApplication::applicationDirPath(), appName + executableSuffix));
|
||||
if (canonicalFile.exists())
|
||||
{
|
||||
return canonicalFile.absoluteFilePath();
|
||||
}
|
||||
#endif // defined(APPIMAGE) && defined(Q_OS_LINUX)
|
||||
|
||||
#if defined(Q_OS_MACOS) && defined(QBS_BUILD) && defined(MULTI_BUNDLE)
|
||||
QFileInfo multiBundleFile(
|
||||
|
|
Loading…
Reference in a new issue