MCPcopy Create free account
hub / github.com/TheAssassin/AppImageLauncher / getOwnBinaryPath

Function getOwnBinaryPath

src/shared/shared.cpp:564–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564std::shared_ptr<char> getOwnBinaryPath() {
565 auto path = std::shared_ptr<char>(realpath("/proc/self/exe", nullptr));
566
567 if (path == nullptr)
568 throw std::runtime_error("Could not detect path to own binary; something must be horribly broken");
569
570 return path;
571}
572
573#ifndef BUILD_LITE
574QString privateLibDirPath(const QString& srcSubdirName) {

Callers 2

privateLibDirPathFunction · 0.85

Calls 1

realpathFunction · 0.85

Tested by

no test coverage detected