[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: |
Sat, 16 Jan 2021 22:47:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
Alexey Abramov <levenson@mmer.org> skribis:
> Thanks Ludo. With this patch, obs will check OBS_PLUGINS_PATH environment
> variable for a *default* location of modules.
OK.
> Plugins might also have some data. I am not sure if it is safe to use
> relative path thought. Would it be better to use OBS_PLUGINS_DATA_PATH var?
I don’t know, how does this patch change the situation wrt. finding a
plugin’s data?
> From 9ade5607aab510cc88561efb7c0b08567b5e19fe Mon Sep 17 00:00:00 2001
> From: Alexey Abramov <levenson@mmer.org>
> Date: Fri, 15 Jan 2021 17:26:37 +0100
> Subject: [PATCH] gnu: obs: Use an environment variable for plugins location.
>
> * gnu/local.mk (dist_patch_DATA): Add it.
> * gnu/packages/video.scm (obs): Use it.
> * gnu/packages/patches/obs-override-default-modules-location.patch: Patch it.
Some minor issues:
> +++ b/gnu/packages/patches/obs-override-default-modules-location.patch
‘guix lint’ might complain about the file name length. :-)
Perhaps remove ‘override-default-’ from the file name.
> @@ -0,0 +1,32 @@
> +From 96e3c05043eb6b682b105e9080b45efeee33dcd0 Mon Sep 17 00:00:00 2001
> +From: Alexey Abramov <levenson@mmer.org>
> +Date: Fri, 15 Jan 2021 17:07:17 +0100
> +Subject: [PATCH] Use an environment variable for a default modules location
> +
> +---
> + libobs/obs-nix.c | 10 ++++++++--
If it comes from another distro, please indicate it clearly at the top
of the file.
> ++ char *obs_plugins_path = getenv("OBS_PLUGINS_PATH");
> ++ if (obs_plugins_path) {
> ++ struct dstr obs_plugins_data_path;
> ++ dstr_init_copy(&obs_plugins_data_path, obs_plugins_path);
> ++ dstr_cat(&obs_plugins_data_path,
> "/../../share/obs/obs-plugins/%module%");
Shouldn’t it be lib/obs-plugins, as your ‘search-path-specification’
indicates?
> + (native-search-paths
> + (list (search-path-specification
> + (variable "OBS_PLUGINS_PATH")
> + (separator #f) ;single entry
> + (files '("lib/obs-plugins")))))
How about renaming the variable to ‘OBS_PLUGINS_DIRECTORY’ given that
it designates a single directory rather than a search path?
Could you send an updated patch?
Thanks!
Ludo’.
[bug#45707] [PATCH v2] gnu: Add obs-v4l2sink., pelzflorian (Florian Pelz), 2021/01/15