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

67 lines
1.4 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();
bool AreQtPluginsBundled();
bool UseXDGDesktopPortal();
bool CanOpenDirectoryWithPortal();
bool IsNotificationServiceActivatable();
2020-01-29 17:41:42 +00:00
QString AppRuntimeDirectory();
QString GetLauncherBasename();
QString GetLauncherFilename();
QString GetIconName();
void InstallLauncher(bool force = false);
2019-09-16 11:14:06 +00:00
inline void IgnoreApplicationActivationRightNow() {
}
} // 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();
}
}
2016-01-30 18:24:42 +00:00
void psWriteDump();
void psActivateProcess(uint64 pid = 0);
2014-07-08 10:24:21 +00:00
QString psAppDataPath();
void psAutoStart(bool start, bool silent = false);
void psSendToMenu(bool send, bool silent = false);
2014-07-08 10:24:21 +00:00
QRect psDesktopRect();
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);