2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add methods to detect appimage, static binary and forced gtk dialog

This commit is contained in:
Ilya Fedin
2020-04-25 09:45:46 +04:00
committed by John Preston
parent 422831fa79
commit 7f890122e6
2 changed files with 108 additions and 38 deletions

View File

@@ -22,11 +22,15 @@ inline void SetWatchingMediaKeys(bool watching) {
bool InSandbox();
bool InSnap();
bool InAppImage();
bool IsStaticBinary();
bool IsGtkFileDialogForced();
bool IsXDGDesktopPortalPresent();
bool UseXDGDesktopPortal();
QString ProcessNameByPID(const QString &pid);
QString RealExecutablePath(int argc, char *argv[]);
QString CurrentExecutablePath(int argc, char *argv[]);
QString AppRuntimeDirectory();