Use flatpak-spawn in flatpak
This commit is contained in:
parent
d8d0e739e7
commit
e3702f147f
2
TODO
2
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).
|
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.
|
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).
|
@ -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 };
|
const char *args[] = { server_filepath, self->socket_path, NULL };
|
||||||
execvp(args[0], (char *const*)args);
|
execvp(args[0], (char *const*)args);
|
||||||
} else if(inside_flatpak) {
|
} 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);
|
execvp(args[0], (char *const*)args);
|
||||||
} else {
|
} 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);
|
execvp(args[0], (char *const*)args);
|
||||||
}
|
}
|
||||||
perror("execvp");
|
perror("execvp");
|
||||||
|
Loading…
Reference in New Issue
Block a user