Confirming, outside lxde session lxappearance writes to wrong file, in wrong format for gtk3 config. I would also suggest usage of $XDG_CONFIG_HOME var (if it is set) when determening location of the config instead of hard-wiring it to ~/.config