Dont hardcore gsr-kms-server path
This commit is contained in:
parent
2765a5d476
commit
3131e041c1
@ -162,11 +162,6 @@ int gsr_kms_client_init(gsr_kms_client *self, const char *card_path) {
|
|||||||
bool has_perm = 0;
|
bool has_perm = 0;
|
||||||
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
const bool inside_flatpak = getenv("FLATPAK_ID") != NULL;
|
||||||
if(!inside_flatpak) {
|
if(!inside_flatpak) {
|
||||||
if(access("/usr/bin/gsr-kms-server", F_OK) != 0) {
|
|
||||||
fprintf(stderr, "gsr error: gsr_kms_client_init: /usr/bin/gsr-kms-server not found, please install gpu-screen-recorder first\n");
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(geteuid() == 0) {
|
if(geteuid() == 0) {
|
||||||
has_perm = true;
|
has_perm = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user