Commit 43a7c60c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Display the user-name in the display name

Describes better what device we're linking to.

REVIEW: 118807
parent cb23fc16
......@@ -55,7 +55,7 @@ void NetworkPackage::createIdentityPackage(NetworkPackage* np)
np->mPayload = QSharedPointer<QIODevice>();
np->mPayloadSize = 0;
np->set("deviceId", id);
np->set("deviceName", QHostInfo::localHostName());
np->set("deviceName", qgetenv("USER") + "@" + QHostInfo::localHostName());
np->set("protocolType", "desktop"); //TODO: Detect laptop, tablet, phone...
np->set("protocolVersion", NetworkPackage::ProtocolVersion);
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