lxqt-session/lxqt-0.13.0-xdg-config-dir.patch
Shawn Dunn 56958edec2 - Update to version 2.1.0:
* Pre-release changes (#556)
  * Weblate commits (#558)
  * Updated *.ts files (#557)
  * Weblate commits (#555)
  * GUI for custom screenlocker on x11 (#517)
  * Weblate commits (#553)
  * Updated Luganda (#552)
  * Weblate commits (#550)
  * Added scope=dialog to leave window (#551)
  * Weblate commits (#549)

OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/lxqt-session?expand=0&rev=52
2024-11-11 00:23:31 +00:00

27 lines
1.1 KiB
Diff

Added because of: https://bugzilla.suse.com/show_bug.cgi?id=1099800
This patch was proposed by Simon Quigly and was declined by upstream.
See discussion at: https://github.com/lxqt/lxqt-session/pull/126/files
From e76f0ebf14b2d54495b3fa27fe751b229b15f6d8 Mon Sep 17 00:00:00 2001
From: Simon Quigley <tsimonq2@ubuntu.com>
Date: Fri, 25 May 2018 22:57:21 -0500
Subject: [PATCH] Ensure all paths are added to $XDG_CONFIG_DIRS.
diff -urEbw lxqt-session-1.1.0/startlxqt.in lxqt-session-1.1.0.new/startlxqt.in
--- lxqt-session-1.1.0/startlxqt.in 2022-04-16 15:16:20.000000000 +0200
+++ lxqt-session-1.1.0.new/startlxqt.in 2022-04-29 08:02:41.790512998 +0200
@@ -26,9 +26,11 @@
if [ -z "$XDG_CONFIG_DIRS" ]; then
export XDG_CONFIG_DIRS="@PREDEF_XDG_CONFIG_DIRS@"
else
- if ! contains "$XDG_CONFIG_DIRS" '@LXQT_ETC_XDG_DIR@'; then
- XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS:@LXQT_ETC_XDG_DIR@"
+ for directory in "/etc" "@LXQT_ETC_XDG_DIR@" "/usr/share"; do
+ if ! contains "$XDG_CONFIG_DIRS" "$directory"; then
+ XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS:$directory"
fi
+ done
fi
if [ -z "$XDG_CACHE_HOME" ]; then