guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#45707] [PATCH] gnu: Add obs-v4l2sink.


From: Ludovic Courtès
Subject: [bug#45707] [PATCH] gnu: Add obs-v4l2sink.
Date: Wed, 13 Jan 2021 15:35:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi,

Alexey Abramov <levenson@mmer.org> skribis:

> In order to provide plugins for obs via $XDG_CONFIG_HOME (~/.config) you need 
> to provide the following structure:
>
> "$XDG_CONFIG_HOME/obs-studio/plugins/<module-name>/bin/<arch>/"
>
> As it implemented in obs-studio (~/obs-studio/UI/window-basic-main.cpp)
>
>   static void AddExtraModulePaths()
>   {
>           char base_module_dir[512];
>   #if defined(_WIN32) || defined(__APPLE__)
>           int ret = GetProgramDataPath(base_module_dir, 
> sizeof(base_module_dir),
>                                        "obs-studio/plugins/%module%");
>   #else
>           int ret = GetConfigPath(base_module_dir, sizeof(base_module_dir),
>                                   "obs-studio/plugins/%module%");
>   #endif

What about patching this function so that it honors, say, an
‘OBS_PLUGIN_PATH’ environment variable?

We’d put plugins under $prefix/lib/obs-studio/plugins and define a
‘search-path-specification’ for it.

My 2¢,
Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]