[client] main: display spice VM name in process title

This commit is contained in:
Quantum
2026-07-29 00:37:26 -04:00
committed by Geoffrey McRae
parent 0f0f96394a
commit 1af909adae
3 changed files with 23 additions and 1 deletions

View File

@@ -24,11 +24,12 @@
#include "util.h"
#include "kb.h"
#include "message.h"
#include "message.h"
#include "common/time.h"
#include "common/debug.h"
#include "common/array.h"
#include "common/proctitle.h"
#include "common/version.h"
#include <math.h>
@@ -757,3 +758,17 @@ void core_updateOverlayState(void)
}
}
}
void core_setTitle(const char * title)
{
if (!lgCanSetProcessTitle())
return;
char * string;
if (asprintf(&string, "Looking Glass Client %s%s%s", BUILD_VERSION,
title && *title ? ": " : "", title ? title : "") >= 0)
{
lgSetProcessTitle(string);
free(string);
}
}