aboutsummaryrefslogtreecommitdiff
path: root/kms/client/kms_client.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-04-16 22:05:09 +0200
committerdec05eba <dec05eba@protonmail.com>2023-04-16 22:05:09 +0200
commitd953d0bb363799211d546035e825d248b9b3c2ed (patch)
treea1c825b9a569fcec993341edbf4fa5e8e95d795d /kms/client/kms_client.h
parentc510bc5ae5099640869ae4a9a475339a5593e676 (diff)
Use XDG_RUNTIME_DIR (and flatpak specific dir) and /dev/dri/renderD128 instead of /dev/dri/card0 (fixes capture on some systems)
Diffstat (limited to 'kms/client/kms_client.h')
-rw-r--r--kms/client/kms_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kms/client/kms_client.h b/kms/client/kms_client.h
index dceef20..254637b 100644
--- a/kms/client/kms_client.h
+++ b/kms/client/kms_client.h
@@ -3,12 +3,13 @@
#include "../kms_shared.h"
#include <sys/types.h>
+#include <limits.h>
typedef struct {
pid_t kms_server_pid;
int socket_fd;
int client_fd;
- char socket_path[255];
+ char socket_path[PATH_MAX];
} gsr_kms_client;
/* |card_path| should be a path to card, for example /dev/dri/card0 */