mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-07 05:42:52 +01:00
KDSingleApplicationLocalSocket: Exclude XDG_SESSION_ID from socket name
This commit is contained in:
parent
6d55eb5974
commit
a6ba0cfc97
@ -47,9 +47,9 @@ KDSingleApplicationLocalSocket::KDSingleApplicationLocalSocket(const QString &na
|
||||
{
|
||||
#if defined(Q_OS_UNIX)
|
||||
/* cppcheck-suppress useInitializationList */
|
||||
m_socketName = QStringLiteral("kdsingleapp-%1-%2-%3")
|
||||
m_socketName = QStringLiteral("kdsingleapp-%1-%2")
|
||||
.arg(::getuid())
|
||||
.arg(qEnvironmentVariable("XDG_SESSION_ID"), name);
|
||||
.arg(name);
|
||||
#elif defined(Q_OS_WIN)
|
||||
// I'm not sure of a "global session identifier" on Windows; are
|
||||
// multiple logins from the same user a possibility? For now, following this:
|
||||
|
Loading…
Reference in New Issue
Block a user