From b72f15dcefd67aa8255369a443615963f1655bbe Mon Sep 17 00:00:00 2001 From: gxalpha Date: Sun, 17 Jul 2022 23:16:25 +0200 Subject: [PATCH] mac-capture: Don't show apps with empty name in SCK SCK's application list has one entry with empty name and bundle ID which belongs to WindowServer. This is not worth exposing since an empty entry would confuse users and nothing would get captured if selected. --- plugins/mac-capture/mac-screen-capture.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/mac-capture/mac-screen-capture.m b/plugins/mac-capture/mac-screen-capture.m index f0e780575..bce93fe66 100644 --- a/plugins/mac-capture/mac-screen-capture.m +++ b/plugins/mac-capture/mac-screen-capture.m @@ -928,8 +928,9 @@ static bool build_application_list(struct screen_capture *sc, [application.applicationName UTF8String]; const char *bundle_id = [application.bundleIdentifier UTF8String]; - obs_property_list_add_string(application_list, name, - bundle_id); + if (strcmp(name, "") != 0) + obs_property_list_add_string(application_list, + name, bundle_id); }]; os_sem_post(sc->shareable_content_available);