Use XDG_RUNTIME_DIR (and flatpak specific dir) and /dev/dri/renderD128 instead of /dev/dri/card0 (fixes capture on some systems)

This commit is contained in:
dec05eba
2023-04-16 22:05:09 +02:00
parent c510bc5ae5
commit d953d0bb36
3 changed files with 36 additions and 18 deletions

View File

@@ -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 */