I have struggled a bit more with this. Tried a quick and dirty way to drop privileges, but it proved to not be sufficient.
The trick is to make it both read from and write to the right dconf database ($HOME/.config/dconf/user), and when I only changed setresgid and setresuid, it still interacted with /root/.cache/dconf/user. Changing HOME made me come closer, but it insists to create $HOME/.cache/dconf/user instead of updating $HOME/.config/dconf/user.
I have struggled a bit more with this. Tried a quick and dirty way to drop privileges, but it proved to not be sufficient.
The trick is to make it both read from and write to the right dconf database ($HOME/ .config/ dconf/user) , and when I only changed setresgid and setresuid, it still interacted with /root/. cache/dconf/ user. Changing HOME made me come closer, but it insists to create $HOME/. cache/dconf/ user instead of updating $HOME/. config/ dconf/user.
So I'm stuck. Again.