From d250434e6c8eb4f8c8cb47ef3cc6e6de8fa8f828 Mon Sep 17 00:00:00 2001 From: Alexey Abramov Date: Fri, 15 Jan 2021 17:07:17 +0100 Subject: [PATCH] Use environment variable for a default module location diff --git a/libobs/obs-nix.c b/libobs/obs-nix.c index 382fa0546..481ea0f14 100644 *** a/libobs/obs-nix.c --- b/libobs/obs-nix.c @@ -66,8 +66,19 @@ void add_default_module_paths(void) { - for (int i = 0; i < module_patterns_size; i++) - obs_add_module_path(module_bin[i], module_data[i]); + char *bin_directory = getenv("OBS_PLUGINS_DIRECTORY"); + char *data_directory = getenv("OBS_PLUGINS_DATA_DIRECTORY"); + if (bin_directory && data_directory) { + struct dstr dstr_data_directory; + dstr_init_copy(&dstr_data_directory, data_directory); + dstr_cat(&dstr_data_directory, "/%module%"); + obs_add_module_path(bin_directory, dstr_data_directory.array); + dstr_free(&dstr_data_directory); + + } else { + for (int i = 0; i < module_patterns_size; i++) + obs_add_module_path(module_bin[i], module_data[i]); + } } /* -- 2.29.2 href='/guix/'>summaryrefslogtreecommitdiff
path: root/gnu/packages/mingw.scm
AgeCommit message (Expand)Author
2024-07-15gnu: mingw-w64-tools: Update to 12.0.0....* gnu/packages/mingw.scm (mingw-w64-tools): Update to 12.0.0. [arguments]: Remove genlib phases. Change-Id: Ia9060ddb1795ca2941a13435485841dbee0c1200 Signed-off-by: Christopher Baines <mail@cbaines.net> Jean-Pierre De Jesus DIAZ
2024-07-15gnu: mingw-w64-tools: Use G-Expressions....* gnu/packages/mingw.scm (mingw-w64-tools): Use G-Expressions. Change-Id: I690d0aeae6c6920d2e3eb43732d6b421a3dfc59b Signed-off-by: Christopher Baines <mail@cbaines.net> Jean-Pierre De Jesus DIAZ
2024-07-15gnu: make-mingw-w64: Update to 12.0.0....* gnu/packages/mingw.scm (make-mingw-w64): Update to 12.0.0. * gnu/packages/patches/mingw-w64-6.0.0-gcc.patch: Delete patch. * gnu/packages/patches/mingw-w64-dlltool-temp-prefix.patch: Delete patch. * gnu/packages/patches/mingw-w64-reproducible-gendef.patch: Delete patch. * gnu/local.mk: Unregister patches. Change-Id: Id9d7d17926280b21016a7217da44004e06e436cd Signed-off-by: Christopher Baines <mail@cbaines.net> Jean-Pierre De Jesus DIAZ
2024-07-15gnu: make-mingw-w64: Use G-Expressions....* gnu/packages/mingw.scm (make-mingw-w64): Use G-Expressions and move some arguments above phases. Change-Id: Ie095dceac635f19f146895c8e3f36d9889108a9a Signed-off-by: Christopher Baines <mail@cbaines.net> Jean-Pierre De Jesus DIAZ
2024-07-15gnu: make-mingw-w64: Memoize....* gnu/packages/mingw.scm (make-mingw-w64): Memoize. Change-Id: Id5653c79e2d6268f6d8200f0f658b27169eab7c5 Signed-off-by: Christopher Baines <mail@cbaines.net> Jean-Pierre De Jesus DIAZ