Changeset View
Changeset View
Standalone View
Standalone View
ksldapp.cpp
Show First 20 Lines • Show All 549 Lines • ▼ Show 20 Line(s) | 549 | if (m_isWayland && m_waylandDisplay) { | |||
---|---|---|---|---|---|
550 | int sx[2]; | 550 | int sx[2]; | ||
551 | if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sx) < 0) { | 551 | if (socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0, sx) < 0) { | ||
552 | qWarning() << "Can not create socket"; | 552 | qWarning() << "Can not create socket"; | ||
553 | emit m_lockProcess->error(QProcess::FailedToStart); | 553 | emit m_lockProcess->error(QProcess::FailedToStart); | ||
554 | return; | 554 | return; | ||
555 | } | 555 | } | ||
556 | m_greeterClientConnection = m_waylandDisplay->createClient(sx[0]); | 556 | m_greeterClientConnection = m_waylandDisplay->createClient(sx[0]); | ||
557 | connect(m_greeterClientConnection, &QObject::destroyed, this, | 557 | connect(m_greeterClientConnection, &QObject::destroyed, this, | ||
558 | [this] { | 558 | [this] (QObject *destroyedObject) { | ||
559 | if (destroyedObject != m_greeterClientConnection) { | ||||
560 | return; | ||||
561 | } | ||||
559 | m_greeterClientConnection = nullptr; | 562 | m_greeterClientConnection = nullptr; | ||
560 | emit greeterClientConnectionChanged(); | 563 | emit greeterClientConnectionChanged(); | ||
561 | } | 564 | } | ||
562 | ); | 565 | ); | ||
563 | emit greeterClientConnectionChanged(); | 566 | emit greeterClientConnectionChanged(); | ||
564 | int socket = dup(sx[1]); | 567 | int socket = dup(sx[1]); | ||
565 | if (socket >= 0) { | 568 | if (socket >= 0) { | ||
566 | QProcessEnvironment env = m_greeterEnv; | 569 | QProcessEnvironment env = m_greeterEnv; | ||
▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines |