Display the user-name in the display name

Describes better what device we're linking to.

REVIEW: 118807
This commit is contained in:
Aleix Pol 2014-06-21 02:05:55 +02:00
parent cb23fc1691
commit 43a7c60c80

View file

@ -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);