Run gpu screen recorder gtk as a proxy for gsr kms server when using flatpak
This commit is contained in:
parent
9d658ba002
commit
29376f0b93
@ -246,7 +246,7 @@ int gsr_kms_client_init(gsr_kms_client *self, const char *card_path) {
|
|||||||
goto err;
|
goto err;
|
||||||
} else if(pid == 0) { /* child */
|
} else if(pid == 0) { /* child */
|
||||||
if(inside_flatpak) {
|
if(inside_flatpak) {
|
||||||
const char *args[] = { "flatpak-spawn", "--host", "pkexec", "flatpak", "run", "--command=gsr-kms-server", "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", self->initial_socket_path, card_path, NULL };
|
||||||
execvp(args[0], (char *const*)args);
|
execvp(args[0], (char *const*)args);
|
||||||
} else if(has_perm) {
|
} else if(has_perm) {
|
||||||
const char *args[] = { server_filepath, self->initial_socket_path, card_path, NULL };
|
const char *args[] = { server_filepath, self->initial_socket_path, card_path, NULL };
|
||||||
|
Loading…
Reference in New Issue
Block a user