Skip to content

Commit

Permalink
Create dconf db directory for local profile
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Jun 19, 2024
1 parent dbd791b commit da4cf3c
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 da4cf3c

Please sign in to comment.