summaryrefslogtreecommitdiffstats
path: root/debian/patches/0002-config_files_paths.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:40:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:40:17 +0000
commit38a4353f63924f0734ee6d85efdf848a6d93bc7e (patch)
treea62557ea80510890872e67e39fd4de63167b9db7 /debian/patches/0002-config_files_paths.patch
parentAdding upstream version 2.8.3. (diff)
downloadpowerline-38a4353f63924f0734ee6d85efdf848a6d93bc7e.tar.xz
powerline-38a4353f63924f0734ee6d85efdf848a6d93bc7e.zip
Adding debian version 2.8.3-4.debian/2.8.3-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0002-config_files_paths.patch')
-rw-r--r--debian/patches/0002-config_files_paths.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/0002-config_files_paths.patch b/debian/patches/0002-config_files_paths.patch
new file mode 100644
index 0000000..9399db2
--- /dev/null
+++ b/debian/patches/0002-config_files_paths.patch
@@ -0,0 +1,19 @@
+Author: Jerome Charaoui <jerome@riseup.net>
+Description: Adds Debian configuration paths
+Bug-Debian: https://bugs.debian.org/758551, https://bugs.debian.org/899178
+Forwarded: not-needed
+
+diff -Naurp powerline.orig/powerline/__init__.py powerline/powerline/__init__.py
+--- powerline.orig/powerline/__init__.py
++++ powerline/powerline/__init__.py
+@@ -148,8 +148,8 @@ def get_config_paths():
+ config_dirs = os.environ.get('XDG_CONFIG_DIRS', DEFAULT_SYSTEM_CONFIG_DIR)
+ if config_dirs is not None:
+ config_paths[:0] = reversed([join(d, 'powerline') for d in config_dirs.split(':')])
+- plugin_path = join(os.path.realpath(os.path.dirname(__file__)), 'config_files')
+- config_paths.insert(0, plugin_path)
++ config_paths.insert(0, '/etc/powerline')
++ config_paths.insert(0, '/usr/share/powerline/config_files')
+ return config_paths
+
+