From cf932d1efb3b8726141a62fab0fdf5e91b8947cb Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 19 May 2023 18:43:32 -0700 Subject: [PATCH] tools: Consistently refer to `$XDG_RUNTIME_DIR` In one place, `$XDG_RUNTIME` was referenced. Which is wrong since the variable is called `$XDG_RUNTIME_DIR`. The other uses referred to `XDG_RUNTIME`, which could be taken as a shorthand, but it's clearer to just use the name of the variable. --- tools/ei-debug-events.c | 2 +- tools/ei-demo-client.c | 2 +- tools/eis-demo-server.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ei-debug-events.c b/tools/ei-debug-events.c index e1f4397..6dccf84 100644 --- a/tools/ei-debug-events.c +++ b/tools/ei-debug-events.c @@ -70,7 +70,7 @@ usage(FILE *fp, const char *argv0) "Start an EI client and print communication from the EIS implementation in YAML format.\n" "The client will bind to all available capabilities on all seats.\n" "\n" - "By default, this client connects to $LIBEI_SOCKET if set or XDG_RUNTIME/eis-0\n" + "By default, this client connects to $LIBEI_SOCKET if set or $XDG_RUNTIME_DIR/eis-0\n" "\n" "Options:\n" " --socketfd Use the given fd as socket to the EIS implementation\n" diff --git a/tools/ei-demo-client.c b/tools/ei-demo-client.c index f37f3da..c069676 100644 --- a/tools/ei-demo-client.c +++ b/tools/ei-demo-client.c @@ -174,7 +174,7 @@ usage(FILE *fp, const char *argv0) "\n" "Options:\n" " --socket Use the socket backend. The socket path is $LIBEI_SOCKET if set, \n" - " otherwise XDG_RUNTIME/eis-0\n" + " otherwise $XDG_RUNTIME_DIR/eis-0\n" " --portal Use the portal backend.\n" " --busname Use the given busname (default: org.freedesktop.portal.Desktop)\n" " --verbose Enable debugging output\n" diff --git a/tools/eis-demo-server.c b/tools/eis-demo-server.c index fd74f5a..f640f55 100644 --- a/tools/eis-demo-server.c +++ b/tools/eis-demo-server.c @@ -554,7 +554,7 @@ usage(FILE *fp, const char *argv0) "and devices and prints any events from the client to stdout.\n" "\n" "Options:\n" - " --socketpath Use the given socket path. Default: $XDG_RUNTIME/eis-0\n" + " --socketpath Use the given socket path. Default: $XDG_RUNTIME_DIR/eis-0\n" " --layout Use the given XKB layout (requires libxkbcommon). Default: none\n" " --uinput Set up each device as uinput device (this requires root)\n" " --verbose Enable debugging output\n"