Commit cc280a4d authored by Laurent Montel's avatar Laurent Montel

Use qEnvironmentVariableIntValue

parent a6ade5e3
......@@ -45,7 +45,7 @@ WaylandClipboard::WaylandClipboard(QObject *parent)
, m_thread(new QThread)
, m_connectionThread(new ConnectionThread)
{
m_connectionThread->setSocketFd(qgetenv("WAYLAND_SOCKET").toInt());
m_connectionThread->setSocketFd(qEnvironmentVariableIntValue("WAYLAND_SOCKET"));
m_connectionThread->moveToThread(m_thread);
m_thread->start();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment