~ruther/guix-local

ref: 7f7a67ae06e0d1ea19bdcceb9b16466bd7d7134d guix-local/gnu/packages/patches/gajim-honour-GAJIM_PLUGIN_PATH.patch -rw-r--r-- 575 bytes
7f7a67ae — AndrĂ© Batista gnu: make-torbrowser: Use current ffmpeg version. 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
--- a/gajim/common/configpaths.py	2020-11-19 12:12:02.004414323 +0100
+++ a/gajim/common/configpaths.py	2020-11-19 15:34:52.211476895 +0100
@@ -47,7 +47,7 @@
         return [Path(_paths['PLUGINS_BASE']),
                 Path('/app/plugins')]
     return [Path(_paths['PLUGINS_BASE']),
-            Path(_paths['PLUGINS_USER'])]
+            Path(_paths['PLUGINS_USER'])] + ([Path(os.getenv('GAJIM_PLUGIN_PATH'))] if os.getenv('GAJIM_PLUGIN_PATH') and Path(os.getenv('GAJIM_PLUGIN_PATH')).is_dir() else [])
 
 
 def get_paths(type_: PathType) -> Generator[str, None, None]: