mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Use abstract socket for single instance on Linux
This commit is contained in:
@@ -557,7 +557,14 @@ void SetApplicationIcon(const QIcon &icon) {
|
||||
}
|
||||
|
||||
QString SingleInstanceLocalServerName(const QString &hash) {
|
||||
#ifdef Q_OS_LINUX
|
||||
if (KSandbox::isSnap()) {
|
||||
return u"snap.telegram-desktop."_q + hash;
|
||||
}
|
||||
return hash + '-' + cGUIDStr();
|
||||
#else // Q_OS_LINUX
|
||||
return QDir::tempPath() + '/' + hash + '-' + cGUIDStr();
|
||||
#endif // !Q_OS_LINUX
|
||||
}
|
||||
|
||||
std::optional<bool> IsDarkMode() {
|
||||
|
Reference in New Issue
Block a user