Function kiwix::getExecutablePath

Function Documentation

std::string kiwix::getExecutablePath(bool realPathOnly = false)

Return the path of the executable

Some application may be packaged in auto extractible archive (Appimage) and the real executable is different of the path of the archive. If realPathOnly is true, return the path of the real executable instead of the archive launched by the user.

Parameters

realPathOnly – If we must return the real path of the executable.

Returns

the path of the executable (utf8 encoded)