2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Add Platform::AutostartSupported

This commit is contained in:
Ilya Fedin
2020-05-29 21:49:39 +04:00
committed by John Preston
parent 413ddf285e
commit e098922a4b
6 changed files with 22 additions and 2 deletions

View File

@@ -516,6 +516,13 @@ std::optional<crl::time> LastUserInputTime() {
return std::nullopt;
}
bool AutostartSupported() {
// snap sandbox doesn't allow creating files in folders with names started with a dot
// and doesn't provide any api to add an app to autostart
// thus, autostart isn't supported in snap
return !InSnap();
}
void FallbackFontConfigCheckBegin() {
if (!CheckFontConfigCrash()) {
return;