From da4cf3ccb34f1f40f68241099dc9f8af5e1aa5db Mon Sep 17 00:00:00 2001 From: wqian Date: Wed, 19 Jun 2024 15:18:30 +0100 Subject: [PATCH] Create dconf db directory for local profile --- shared/macros/10-bash.jinja | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/macros/10-bash.jinja b/shared/macros/10-bash.jinja index 84f8a22c1f5..167730a4458 100644 --- a/shared/macros/10-bash.jinja +++ b/shared/macros/10-bash.jinja @@ -2503,6 +2503,9 @@ if ! grep -Pzq "(?s)^\s*user-db:user.*\n\s*system-db:{{{ database }}}" "${dconf_ sed -i --follow-symlinks "1s/^/user-db:user\nsystem-db:{{{ database }}}\n/" "${dconf_profile_path}" fi +# Make sure the corresponding directories exist +mkdir -p /etc/dconf/db/{{{ database }}}.d + # Make sure permissions allow regular users to read dconf settings. # Also define the umask to avoid `dconf update` changing permissions. chmod -R u=rwX,go=rX /etc/dconf/profile