mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-30 20:00:09 +01:00
tools: print the default properties from the demo server
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
ed208f8374
commit
6197e5a34e
1 changed files with 5 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue