| 562 | } |
| 563 | |
| 564 | std::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 |
| 574 | QString privateLibDirPath(const QString& srcSubdirName) { |
no test coverage detected