mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Shorten socket paths on Linux
This commit is contained in:
parent
852196a013
commit
5d33290218
2 changed files with 8 additions and 4 deletions
|
@ -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();
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 3d5830556b088cb74c0e60f2371169dde717d3fb
|
||||
Subproject commit 75cc4c04d28a09172b1df596913c09161aaede35
|
Loading…
Add table
Reference in a new issue