Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37762700
en ru br
ALT Linux repos
S:0.99.2-alt7.1
5.0: 0.3.2.1-alt2

Group :: Graphical desktop/Other
RPM: lxde-common

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: lxde-common-copy_skel_settings.patch
Download


From b37628795055116acffc5b98ee6905579205ab8f Mon Sep 17 00:00:00 2001
From: Anton Midyukov <antohami@altlinux.org>
Date: Thu, 14 Oct 2021 22:18:07 +0700
Subject: [PATCH] startlxde.in: copy configs to XDG_DATA_HOME
---
 startlxde.in | 8 ++++++++
 1 file changed, 8 insertions(+)
diff --git a/startlxde.in b/startlxde.in
index fd20816..2184f98 100755
--- a/startlxde.in
+++ b/startlxde.in
@@ -8,6 +8,27 @@ if [ -z "$XDG_DATA_HOME" ]; then
 	export XDG_DATA_HOME="$HOME/.local/share"
 fi
 
+# Copy configs to $XDG_DATA_HOME
+if [ -d /usr/share/lxde ]; then
+	for i in $(find /usr/share/lxde/* -type d |
+          sed -e 's,/usr/share/lxde/,,' \
+          -e '/desktop.conf/d' \
+          -e '/wallpapers/d' \
+          -e '/images/d'); do
+		mkdir -p "$XDG_CONFIG_HOME/$i"
+	done
+	for i in $(find /usr/share/lxde/* -type f |
+           sed -e 's,/usr/share/lxde/,,' \
+           -e '/desktop.conf/d' \
+           -e '/.gtkrc-2.0/d' \
+           -e '/wallpapers/d' \
+           -e '/images/d'); do
+		[ -f "$XDG_CONFIG_HOME/$i" ] ||
+		  cp /usr/share/lxde/$i $XDG_CONFIG_HOME/${i%/*}
+	done
+	[ -f "$HOME"/.gtkrc-2.0 ] || cp /usr/share/lxde/.gtkrc-2.0 "$HOME"/ ||:
+fi
+
 # Ensure the existance of openbox config file
 OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
 if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
-- 
2.33.0
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin