Skip to content

Commit

Permalink
Merge pull request #12079 from alanmcanonical/dconf_fix
Browse files Browse the repository at this point in the history
Create dconf db directory for local profile
  • Loading branch information
jan-cerny authored Jun 20, 2024
2 parents bd0e1bd + da4cf3c commit 30252ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shared/macros/10-bash.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30252ad

Please sign in to comment.