Description
Which takes presidence over the system's default rc.xml.
If a packager edits rc.xml for custom defaults of the labwc package in /etc/xdg/labwc, labwc-tweaks-gtk will break it.
output of ~/.config/labwc/rc.xml when it did not originally exist and program touches it:
<?xml version="1.0"?>
<labwc_config>
<core>
</core>
</labwc_config>
^@
Reproduce:
copy your custom rc.xml to /etc/xdg/labwc/
delete ~/.config/labwc/rc.xml
run labwc-tweaks-gtk and change the openbox theme
If you do not wish you mess up your configs: I put together a goofy little demo livecd with the scenario setup.
ISO here, checksum here
Audit the livecd here. The .kiwi file is the iso configuration and package selection. The config.sh file is a chroot script that puts the final touches on the image's filesystem before it is squashfs'ed, my custom configs are written in there. Repos used are in the project's meta file. Labwc-tweaks-gtk package here.
Propose solution:
Have the program check if rc.xml exists in the user's home config dir, If not try to copy /etc/xdg/labwc/rc.xml to the user's home dir.
My noobish workaround was to launch the program from a bash script that does that.