From 269d48f6816d77045724b050b9a6e890a301376c Mon Sep 17 00:00:00 2001 From: derrod Date: Sat, 19 Feb 2022 12:55:01 +0100 Subject: [PATCH] libobs: Adjust path for legacy browser source block The current path would prevent the browser source from loading if OBS itself is in the "Application Support" folder, where it might end up when being installed via certain distribution platforms. This adjusts the existing hack to specifically check for the obs-studio subfolder where the old browser source library would reside. --- libobs/obs-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/obs-module.c b/libobs/obs-module.c index cc2f5e186..3f3cb98a0 100644 --- a/libobs/obs-module.c +++ b/libobs/obs-module.c @@ -110,7 +110,7 @@ int obs_open_module(obs_module_t **module, const char *path, /* HACK: Do not load obsolete obs-browser build on macOS; the * obs-browser plugin used to live in the Application Support * directory. */ - if (astrstri(path, "Library/Application Support") != NULL && + if (astrstri(path, "Library/Application Support/obs-studio") != NULL && astrstri(path, "obs-browser") != NULL) { blog(LOG_WARNING, "Ignoring old obs-browser.so version"); return MODULE_ERROR;