mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-23 06:09:02 +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)
|
#if defined(Q_OS_UNIX)
|
||||||
/* cppcheck-suppress useInitializationList */
|
/* cppcheck-suppress useInitializationList */
|
||||||
m_socketName = QStringLiteral("kdsingleapp-%1-%2-%3")
|
m_socketName = QStringLiteral("kdsingleapp-%1-%2")
|
||||||
.arg(::getuid())
|
.arg(::getuid())
|
||||||
.arg(qEnvironmentVariable("XDG_SESSION_ID"), name);
|
.arg(name);
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
// I'm not sure of a "global session identifier" on Windows; are
|
// I'm not sure of a "global session identifier" on Windows; are
|
||||||
// multiple logins from the same user a possibility? For now, following this:
|
// multiple logins from the same user a possibility? For now, following this:
|
||||||
|
Loading…
Reference in New Issue
Block a user