tools: print the default properties from the demo server

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2021-08-26 12:31:50 +10:00
parent ed208f8374
commit 6197e5a34e

View file

@ -157,7 +157,11 @@ eis_demo_server_printf_handle_event(struct eis_demo_server *server,
case EIS_EVENT_CLIENT_CONNECT:
{
struct eis_client *client = eis_event_get_client(e);
colorprint("new client: %s\n", eis_client_get_name(client));
const char *pid = eis_client_property_get(client, "ei.application.pid");
const char *cmdline = eis_client_property_get(client, "ei.application.cmdline");
const char *ctype = eis_client_property_get(client, "ei.connection.type");
colorprint("new client: %s (pid %s, '%s'), connected via %s\n", eis_client_get_name(client),
pid, cmdline, ctype);
/* insert sophisticated authentication here */
eis_client_connect(client);
colorprint("accepting client, creating new seat 'default'\n");