aboutsummaryrefslogtreecommitdiffstats
path: root/dconf/xinit
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dconf/xinit10
1 files changed, 8 insertions, 2 deletions
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