From caad3a758ddc2d7c9bafbb2f0b61700daccb14de Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 27 Jun 2021 13:50:41 +0200 Subject: Add dconf entires MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dconf/xinit | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'dconf/xinit') diff --git a/dconf/xinit b/dconf/xinit index 645f699..f2557b7 100644 --- a/dconf/xinit +++ b/dconf/xinit @@ -11,7 +11,13 @@ if test ! "${SET_DCONF_PROFILE}" = 0; then > ~/.config/dconf/profiles/"${SESSION/-/_}" fi - if test ! -e ~/.config/dconf/"${SESSION/-/_}" && test -e ~/.config/dconf/user; then - cp -- ~/.config/dconf/user ~/.config/dconf/"${SESSION/-/_}" + if test ! -e ~/.config/dconf/"${SESSION/-/_}"; then + # Unfortunely dconf requires X+DBus, so we need to generate the profile when + # the winow manager is first ran + if test -x ~/.dotfiles/dconf/gen-"${SESSION/-/_}"; then + ~/.dotfiles/dconf/gen-"${SESSION/-/_}" + elif test -e ~/.config/dconf/user; then + cp -- ~/.config/dconf/user ~/.config/dconf/"${SESSION/-/_}" + fi fi fi -- cgit v1.2.3-70-g09d2