Tizen: Fix QCoreApplication::applicationDirPath()
authorTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:41:48 +0000 (15:41 +0100)
committerTomasz Olszak <olszak.tomasz@gmail.com>
Tue, 10 Nov 2015 14:41:48 +0000 (15:41 +0100)
commit072e1776320bae98d74aab1114e511c6202f1429
treea7615dfd343440512eedb61cae29e633f1088ea6
parent94074982e2152c665ca3b5cca5990bd4c80f32e7
Tizen: Fix QCoreApplication::applicationDirPath()

Disable the code path which queries /proc/<pid>/exe for the
current executable path, as from a Q_OS_LINUX_TIZEN perspective,
this executable will be the launch_app binary. Instead we
get the application directory via the fallback, by
looking in argv[0], since this is set to the location of the
application binary.

Change-Id: I3132266b8fa83cfad968e5d04883d88a731c1a87
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/kernel/qcoreapplication.cpp