ZaStoGram_desktop/Telegram/SourceFiles/platform/linux/widget_lockdown_linux.h
John Preston 01a9c02f17 Run Linux widget engines in a separate helper executable
Task: 2026/11/14/move-the-linux-widget-helper-into-a-qt-free-executable
2026-11-19 23:17:08 +04:00

27 lines
693 B
C++

/*
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
*/
#pragma once
#ifdef __linux__
#include <string>
namespace Platform::WidgetHelper {
#if defined __x86_64__ || defined __aarch64__
inline constexpr auto kLockdownAvailable = true;
#else // __x86_64__ || __aarch64__
inline constexpr auto kLockdownAvailable = false;
#endif // __x86_64__ || __aarch64__
void PrepareHelperProcess(int firstToClose);
[[nodiscard]] std::string LockDownHelper();
} // namespace Platform::WidgetHelper
#endif // __linux__