diff options
author | Mattias Andrée <maandree@kth.se> | 2021-06-27 13:50:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-06-27 13:50:41 +0200 |
commit | caad3a758ddc2d7c9bafbb2f0b61700daccb14de (patch) | |
tree | 3259465dbd9b8ca6771cf87b14001153d0e69c1c /dconf/xinit | |
parent | m (diff) | |
download | dotfiles-caad3a758ddc2d7c9bafbb2f0b61700daccb14de.tar.gz dotfiles-caad3a758ddc2d7c9bafbb2f0b61700daccb14de.tar.bz2 dotfiles-caad3a758ddc2d7c9bafbb2f0b61700daccb14de.tar.xz |
Add dconf entires
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'dconf/xinit')
-rw-r--r-- | dconf/xinit | 10 |
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 |