--- a/src/waypipe.c +++ b/src/waypipe.c @@ -79,8 +79,8 @@ " -n, --no-gpu disable protocols which would use GPU resources\n" " -o, --oneshot only permit one connected application\n" " -s, --socket S set the socket path to either create or connect to:\n" - " server default: /tmp/waypipe-server.sock\n" - " client default: /tmp/waypipe-client.sock\n" + " server default: @TERMUX_PREFIX@/tmp/waypipe-server.sock\n" + " client default: @TERMUX_PREFIX@/tmp/waypipe-client.sock\n" " ssh: sets the prefix for the socket path\n" " --version print waypipe version and exit\n" " --allow-tiled allow gpu buffers (DMABUFs) with format modifiers\n" @@ -757,7 +757,7 @@ } else { struct socket_path client_sock_path; client_sock_path.folder = - socketpath ? socketpath : "/tmp/"; + socketpath ? socketpath : "@TERMUX_PREFIX@/tmp/"; client_sock_path.filename = &sockaddr; if (!socketpath) { sockaddr.sun_family = AF_UNIX; @@ -799,7 +799,7 @@ } else { struct socket_path server_sock_path; server_sock_path.folder = - socketpath ? socketpath : "/tmp/"; + socketpath ? socketpath : "@TERMUX_PREFIX@/tmp/"; server_sock_path.filename = &sockaddr; if (!socketpath) { sockaddr.sun_family = AF_UNIX; @@ -830,8 +830,8 @@ } else { clientsock.sun_family = AF_UNIX; strcpy(clientsock.sun_path, "waypipe"); - strcpy(socket_folder, "/tmp/"); - socketpath = "/tmp/waypipe"; + strcpy(socket_folder, "@TERMUX_PREFIX@/tmp/"); + socketpath = "@TERMUX_PREFIX@/tmp/waypipe"; } if (strlen(clientsock.sun_path) + sizeof("-server-88888888.sock") >=