mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-30 03:34:42 +00:00
fix worning
This commit is contained in:
parent
a984e8d6d0
commit
9556d4d100
@ -67,7 +67,10 @@ bool Params::parseParams(int argc,const char *argv[]) {
|
|||||||
params ["appPath"] = QFileInfo(buffer).absolutePath();
|
params ["appPath"] = QFileInfo(buffer).absolutePath();
|
||||||
#else
|
#else
|
||||||
char path[2048];
|
char path[2048];
|
||||||
readlink("/proc/self/exe", path, 2048);
|
if (readlink("/proc/self/exe", path, 2048) < 0) {
|
||||||
|
qWarning() << "parseParams can't get self path!" ;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
params ["appPath"] = QFileInfo(path).absolutePath();
|
params ["appPath"] = QFileInfo(path).absolutePath();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user