From 063085a6bb90d2d2b94cc78fd9623094b1f3f840 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 19 Aug 2025 02:16:12 +0400 Subject: [PATCH] Format Linux webview socket path using std::format --- Telegram/SourceFiles/platform/linux/specific_linux.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/specific_linux.cpp b/Telegram/SourceFiles/platform/linux/specific_linux.cpp index 1710805359..60985f80f7 100644 --- a/Telegram/SourceFiles/platform/linux/specific_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/specific_linux.cpp @@ -712,11 +712,10 @@ void start() { GLib::set_prgname(cExeName().toStdString()); GLib::set_application_name(AppName.data()); - Webview::WebKitGTK::SetSocketPath(u"%1/%2-%3-webview-%4"_q.arg( + Webview::WebKitGTK::SetSocketPath(u"%1/%2-%3-webview-{}"_q.arg( QDir::tempPath(), HashForSocketPath(), - u"TD"_q,//QCoreApplication::applicationName(), - make path smaller. - u"%1"_q).toStdString()); + u"TD"_q).toStdString()); InstallLauncher(); }