diff --git a/backends/wayland/wayland_backend.cpp b/backends/wayland/wayland_backend.cpp index 9b1f784818..47ed149f07 100644 --- a/backends/wayland/wayland_backend.cpp +++ b/backends/wayland/wayland_backend.cpp @@ -329,7 +329,9 @@ void WaylandBackend::init() } ); connect(m_registry, &Registry::interfacesAnnounced, this, &WaylandBackend::createSurface); - m_connectionThreadObject->setSocketName(deviceIdentifier()); + if (!deviceIdentifier().isEmpty()) { + m_connectionThreadObject->setSocketName(deviceIdentifier()); + } initConnection(); }