[neon/snap-packaging/snapcraft-desktop-integration] common: desktop-exports: fix the xdg config dirs
Scarlett Moore
null at kde.org
Fri Nov 8 17:08:25 GMT 2024
Git commit 7aae79b668b549c0da0f83fa191dc33a39df349a by Scarlett Moore, on behalf of Soumyadeep Ghosh.
Committed on 08/11/2024 at 17:07.
Pushed by scarlettmoore into branch 'master'.
desktop-exports: fix the xdg config dirs
M +4 -0 common/desktop-exports
https://invent.kde.org/neon/snap-packaging/snapcraft-desktop-integration/-/commit/7aae79b668b549c0da0f83fa191dc33a39df349a
diff --git a/common/desktop-exports b/common/desktop-exports
index 13a6c12..1027d68 100644
--- a/common/desktop-exports
+++ b/common/desktop-exports
@@ -129,6 +129,10 @@ export GST_PLUGIN_SYSTEM_PATH="$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/gstreamer-1.0
export GST_PLUGIN_SCANNER="$SNAP_DESKTOP_RUNTIME/usr/lib/$ARCH/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner"
# XDG Config
+# KConfig uses QStandardPaths:GenericConfigLocation to get the config dir paths
+# and checks for the kdeglobals file there for theming. The kdeglobals file is
+# stored in $SNAP_REAL_HOME/.config folder.
+prepend_dir XDG_CONFIG_DIRS "$SNAP_REAL_HOME/.config"
prepend_dir XDG_CONFIG_DIRS "$SNAP_DESKTOP_RUNTIME/etc/xdg"
prepend_dir XDG_CONFIG_DIRS "$SNAP/etc/xdg"
More information about the Neon-commits
mailing list