tdesktop/Telegram/SourceFiles/platform/linux/specific_linux.h

62 lines
1.2 KiB
C
Raw Normal View History

2014-07-08 10:24:21 +00:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
2014-07-08 10:24:21 +00:00
*/
#pragma once
#include "platform/platform_specific.h"
2019-06-21 12:27:46 +00:00
namespace Data {
class LocationPoint;
} // namespace Data
namespace Platform {
2020-06-01 08:34:51 +00:00
bool InFlatpak();
bool InSnap();
2020-01-29 17:41:42 +00:00
QString AppRuntimeDirectory();
QString GetIconName();
void InstallLauncher(bool force = false);
2019-09-16 11:14:06 +00:00
inline void IgnoreApplicationActivationRightNow() {
}
2021-05-03 13:34:33 +00:00
inline void WriteCrashDumpDetails() {
}
inline void AutostartRequestStateFromSystem(Fn<void(bool)> callback) {
}
} // namespace Platform
2014-07-08 10:24:21 +00:00
inline void psCheckLocalSocket(const QString &serverName) {
QFile address(serverName);
2014-07-08 10:24:21 +00:00
if (address.exists()) {
address.remove();
}
}
void psActivateProcess(uint64 pid = 0);
2014-07-08 10:24:21 +00:00
QString psAppDataPath();
void psSendToMenu(bool send, bool silent = false);
2014-07-08 10:24:21 +00:00
int psCleanup();
int psFixPrevious();
void psNewVersion();
inline QByteArray psDownloadPathBookmark(const QString &path) {
return QByteArray();
}
inline void psDownloadPathEnableAccess() {
}
bool linuxMoveFile(const char *from, const char *to);
2019-06-21 12:27:46 +00:00
bool psLaunchMaps(const Data::LocationPoint &point);