Display the user-name in the display name
Describes better what device we're linking to. REVIEW: 118807
This commit is contained in:
parent
cb23fc1691
commit
43a7c60c80
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue