Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: samedirection on July 17, 2009, 11:27:44 AM

Title: openbox.tce writes over my $HOME/.config files each reboot
Post by: samedirection on July 17, 2009, 11:27:44 AM
I think it's down to the script in /usr/local/bin/openbox_initmenu, which contains this line:

rsync -a /etc/skel/.config/openbox /home/$USER/.config

(may not be exact.  I'm copying from paper notes).  It doesn't check for an existing set of config files first, and overwrites them every time.  This means my modifications to the menu and keyboard configs don't persist.

Also, it leaves the /home/tc/.config/openbox owned by root.root.

Thanks.
Title: Re: openbox.tce writes over my $HOME/.config files each reboot
Post by: samedirection on July 18, 2009, 12:54:23 AM
I'm away for 4 days, so I won't be able to respond to anyone who answers this thread for a while.  I thought that I should add, in case it's relevant, that I'm using a persistant /home/tc directory.
Title: Re: openbox.tce writes over my $HOME/.config files each reboot
Post by: mikshaw on July 18, 2009, 08:40:58 AM
Quote
It doesn't check for an existing set of config files first, and overwrites them every time.
That sounds like a bad thing to me.  Is that script part of the original openbox package, or something added for the TC extension?  If it's the latter I'd definitely suggest the packager fix it...overwritng files without asking or checking can be seen as being very rude.
Title: Re: openbox.tce writes over my $HOME/.config files each reboot
Post by: junan on July 21, 2009, 05:14:32 AM
it's added for tc extension.
just follow the example from hackedbox.tce
i will check it again, or maybe add some checking before overwrite in near time.
Title: Re: openbox.tce writes over my $HOME/.config files each reboot
Post by: samedirection on July 24, 2009, 06:43:58 PM
junan, thanks very much for yesterday's fresh update of openbox.  Unless I'm wrong, however, it doesn't seem to have fixed this particular problem.  My $HOME/.config/openbox/ files are still overwritten each time the extension loads. 

(By the way did you mean that I should just follow the example in hackedbox, or that you did to make the extension?)

Title: Re: openbox.tce writes over my $HOME/.config files each reboot
Post by: junan on July 27, 2009, 01:53:09 AM
how do you know it is still overwrite the files ?
when i test it , i can change the theme , and after reboot the changes still remains.
that means after reboot, the files not overwritten (file = /home/$USER/.config/openbox/rc.xml)