-
Notifications
You must be signed in to change notification settings - Fork 4
If rc.xml doesn't exist in the user's home .config directory the program produces a empty rc.xml #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can run with
Might it be simpler to prompt the user to confirm that they actually want an empty rc.xml to be created? |
Yes I should have mentioned: If rc.xml doesn't exist, and the program creates it, the new settings aren't written. ie the new openbox theme selection. I'm assuming that is the desired behavior? apologies |
@01micko Thoughts on way forward? |
Yeah saw this a few days ago and have some thoughts, but no idea of a way forward as yet.
|
Also, perhaps shipping an |
The packaging angle is unimportant. Apologies. My non-coder eye sees it wants
But the template it creates is
Million apologies for the packaging thought |
Whelp, looks like I'm just generating noise. I should have checked the other project first: labwc/labwc-tweaks#68 |
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:
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.
The text was updated successfully, but these errors were encountered: