diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-20 02:17:56 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-20 02:17:56 +0200 |
commit | b2728e083105269af52c6f4c13b32d31933e52d1 (patch) | |
tree | b690fd3c176d3c99f8d309920d890a8cfd5af6b5 /src/capture/portal.c | |
parent | d2b172dd9cdfaf0c61fbca4368d3c58250f8f927 (diff) |
exit code 60 if portal capture was canceled by the user
Diffstat (limited to 'src/capture/portal.c')
-rw-r--r-- | src/capture/portal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/capture/portal.c b/src/capture/portal.c index 86cbcbd..6263b8b 100644 --- a/src/capture/portal.c +++ b/src/capture/portal.c @@ -247,8 +247,11 @@ static int gsr_capture_portal_start(gsr_capture *cap, AVCodecContext *video_code // 2: The user interaction was ended in some other way // Response status value 2 happens usually if there was some kind of error in the desktop portal on the system if(response_status == 2) { - fprintf(stderr, "gsr error: gsr_capture_portal_start: desktop portal capture failed. Either you canceled the desktop portal or your Wayland compositor doesn't support desktop portal capture or it's incorrectly setup on your system\n"); + fprintf(stderr, "gsr error: gsr_capture_portal_start: desktop portal capture failed. Either you Wayland compositor doesn't support desktop portal capture or it's incorrectly setup on your system\n"); return 50; + } else if(response_status == 1) { + fprintf(stderr, "gsr error: gsr_capture_portal_start: desktop portal capture failed. It seems like desktop portal capture was canceled by the user.\n"); + return 60; } else { return -1; } |