diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-04-08 07:12:45 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-08 07:12:45 +0200 |
commit | e3702f147ff5462a03299115f0e7765715a37976 (patch) | |
tree | 46d2ae9bc608a835445e22b5d7688aeeccc24d73 /src | |
parent | d8d0e739e7e40c0b69ecd88160855646684ef3a8 (diff) |
Use flatpak-spawn in flatpak
Diffstat (limited to 'src')
-rw-r--r-- | src/kms/kms_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |