From e3702f147ff5462a03299115f0e7765715a37976 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 8 Apr 2023 07:12:45 +0200 Subject: [PATCH] Use flatpak-spawn in flatpak --- TODO | 2 ++ src/kms/kms_client.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 5552b56..b31269d 100644 --- a/TODO +++ b/TODO @@ -45,3 +45,5 @@ Better colors for vaapi. It looks a bit off when recording vscode for example. Clear vaapi surface (for focused window). Support -h and --help. -h should only show the first line and --help the full help. On error, only show that -h. + +Handle rotated monitor (on nvfbc and kms). \ No newline at end of file diff --git a/src/kms/kms_client.c b/src/kms/kms_client.c index 0b3083a..cddd8ff 100644 --- a/src/kms/kms_client.c +++ b/src/kms/kms_client.c @@ -142,10 +142,10 @@ int gsr_kms_client_init(gsr_kms_client *self, const char *card_path, const char const char *args[] = { server_filepath, self->socket_path, NULL }; execvp(args[0], (char *const*)args); } else if(inside_flatpak) { - const char *args[] = { "pkexec", server_filepath, self->socket_path, NULL }; + const char *args[] = { "flatpak-spawn", "--host", "pkexec", server_filepath, self->socket_path, NULL }; execvp(args[0], (char *const*)args); } else { - const char *args[] = { "flatpak-spawn", "--host", "pkexec", server_filepath, self->socket_path, NULL }; + const char *args[] = { "pkexec", server_filepath, self->socket_path, NULL }; execvp(args[0], (char *const*)args); } perror("execvp");