pkexec test

This commit is contained in:
dec05eba 2023-04-08 06:23:15 +02:00
parent be388cda5f
commit 5247787fcf

View File

@ -132,7 +132,7 @@ 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 {
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);
}
perror("execvp");