From 7d718336bda72de2ab785dcc26d49c48e2a9b210 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 29 Nov 2023 10:36:34 +0100 Subject: Use correct arguments for flatpak spawn --- kms/client/kms_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kms/client/kms_client.c b/kms/client/kms_client.c index 4f5c708..4730e7c 100644 --- a/kms/client/kms_client.c +++ b/kms/client/kms_client.c @@ -246,7 +246,7 @@ int gsr_kms_client_init(gsr_kms_client *self, const char *card_path) { goto err; } else if(pid == 0) { /* child */ if(inside_flatpak) { - const char *args[] = { "flatpak-spawn", "--host", "pkexec", "flatpak", "run", "--command=gpu-screen-recorder-gtk", "com.dec05eba.gpu_screen_recorder", self->initial_socket_path, card_path, NULL }; + const char *args[] = { "flatpak-spawn", "--host", "pkexec", "flatpak", "run", "--command=gpu-screen-recorder-gtk", "com.dec05eba.gpu_screen_recorder", "--kms-server", "--kms-socket-path", self->initial_socket_path, "--dri-card-path", card_path, NULL }; execvp(args[0], (char *const*)args); } else if(has_perm) { const char *args[] = { server_filepath, self->initial_socket_path, card_path, NULL }; -- cgit v1.2.3