mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 06:12:04 +00:00
[client] main: display spice VM name in process title
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
#include "common/paths.h"
|
||||
#include "common/cpuinfo.h"
|
||||
#include "common/ll.h"
|
||||
#include "common/proctitle.h"
|
||||
|
||||
#include "message.h"
|
||||
#include "core.h"
|
||||
@@ -739,6 +740,8 @@ void spiceReady(void)
|
||||
PSServerInfo info;
|
||||
if (purespice_getServerInfo(&info))
|
||||
{
|
||||
core_setTitle(info.name);
|
||||
|
||||
bool uuidValid = false;
|
||||
for(int i = 0; i < sizeof(info.uuid); ++i)
|
||||
if (info.uuid[i])
|
||||
@@ -1631,6 +1634,9 @@ int main(int argc, char * argv[])
|
||||
return -1;
|
||||
}
|
||||
|
||||
lgInitProcessTitle(argc, &argv);
|
||||
core_setTitle(NULL);
|
||||
|
||||
DEBUG_INFO("Looking Glass (%s)", BUILD_VERSION);
|
||||
DEBUG_INFO("Locking Method: " LG_LOCK_MODE);
|
||||
cpuInfo_log();
|
||||
|
||||
Reference in New Issue
Block a user