mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Shorten socket paths on Linux
This commit is contained in:
@@ -454,9 +454,13 @@ QString SingleInstanceLocalServerName(const QString &hash) {
|
|||||||
+ '.'
|
+ '.'
|
||||||
+ hash;
|
+ hash;
|
||||||
}
|
}
|
||||||
return hash + '-' + cGUIDStr();
|
return hash + '-' + QCoreApplication::applicationName();
|
||||||
#else // Q_OS_LINUX && Qt >= 6.2.0
|
#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
|
#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(
|
Webview::WebKitGTK::SetSocketPath(u"%1/%2-%3-webview-%4"_q.arg(
|
||||||
QDir::tempPath(),
|
QDir::tempPath(),
|
||||||
h,
|
h,
|
||||||
cGUIDStr(),
|
QCoreApplication::applicationName(),
|
||||||
u"%1"_q).toStdString());
|
u"%1"_q).toStdString());
|
||||||
|
|
||||||
InstallLauncher();
|
InstallLauncher();
|
||||||
|
Submodule Telegram/lib_webview updated: 3d5830556b...75cc4c04d2
Reference in New Issue
Block a user