mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-01-10 18:30:24 +01:00
tools: default to the LIBEI_SOCKET if present
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1bdca21772
commit
1817071b5a
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,8 @@ int main(int argc, char **argv)
|
|||
/* This should be handled by libei */
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
int rc = ei_socket_init(ei, SOCKETNAME);
|
||||
int rc = ei_socket_init(ei, getenv("LIBEI_SOCKET") ? NULL : SOCKETNAME);
|
||||
|
||||
if (rc != 0) {
|
||||
fprintf(stderr, "init failed: %s\n", strerror(errno));
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue