From 5d332902188b6cfd9cfc86adcc99dbde76d19e05 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 29 Jan 2024 11:43:02 +0400 Subject: [PATCH] Shorten socket paths on Linux --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 10 +++++++--- Telegram/lib_webview | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 41828edbc0e4e5..6c1690c187aba2 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -454,9 +454,13 @@ QString SingleInstanceLocalServerName(const QString &hash) { + '.' + hash; } - return hash + '-' + cGUIDStr(); + return hash + '-' + QCoreApplication::applicationName(); #else // Q_OS_LINUX && Qt >= 6.2.0 - return QDir::tempPath() + '/' + hash + '-' + cGUIDStr(); + return QDir::tempPath() + + '/' + + hash + + '-' + + QCoreApplication::applicationName(); #endif // !Q_OS_LINUX || Qt < 6.2.0 } @@ -648,7 +652,7 @@ void start() { Webview::WebKitGTK::SetSocketPath(u"%1/%2-%3-webview-%4"_q.arg( QDir::tempPath(), h, - cGUIDStr(), + QCoreApplication::applicationName(), u"%1"_q).toStdString()); InstallLauncher(); diff --git a/Telegram/lib_webview b/Telegram/lib_webview index 3d5830556b088c..75cc4c04d28a09 160000 --- a/Telegram/lib_webview +++ b/Telegram/lib_webview @@ -1 +1 @@ -Subproject commit 3d5830556b088cb74c0e60f2371169dde717d3fb +Subproject commit 75cc4c04d28a09172b1df596913c09161aaede35