mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Fix single instance socket path for compatibility with flatpak
This commit is contained in:
@@ -325,6 +325,10 @@ QString CurrentExecutablePath(int argc, char *argv[]) {
|
||||
return QString();
|
||||
}
|
||||
|
||||
QString SingleInstanceLocalServerName(const QString &hash) {
|
||||
return qsl("Global\\") + hash + '-' + cGUIDStr();
|
||||
}
|
||||
|
||||
std::optional<crl::time> LastUserInputTime() {
|
||||
auto lii = LASTINPUTINFO{ 0 };
|
||||
lii.cbSize = sizeof(LASTINPUTINFO);
|
||||
|
Reference in New Issue
Block a user