mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-28 10:44:41 +00:00
add aple support
This commit is contained in:
parent
909bff8142
commit
b971e3dffb
@ -240,8 +240,9 @@ bool Params::parseParams(const QStringList ¶msArray, const OptionsDataList &
|
||||
GetModuleFileNameA(nullptr, buffer, MAX_PATH);
|
||||
appPath = QFileInfo(buffer).absolutePath();
|
||||
appName = QFileInfo(buffer).fileName();
|
||||
#endif
|
||||
|
||||
#else
|
||||
#ifdef Q_OS_LINUX
|
||||
char path[2048];
|
||||
memset(path, 0, sizeof path);
|
||||
|
||||
@ -253,6 +254,10 @@ bool Params::parseParams(const QStringList ¶msArray, const OptionsDataList &
|
||||
appPath = QFileInfo(path).absolutePath();
|
||||
appName = QFileInfo(path).fileName();
|
||||
|
||||
#endif
|
||||
#ifdef Q_OS_DARWIN
|
||||
appPath = QCoreApplication::applicationDirPath();
|
||||
appName = QCoreApplication::applicationName();
|
||||
#endif
|
||||
|
||||
if (!appPath.size()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user