Aha!!! of course! the logs in the default profile are off by default and we use
that as a base for a new profile...
I think the best way to do it is to NOT load the default profile, simply
because it's a new profile, not a copy of the default profile..
if someone modified the default profile's settings (skin, plugins..), you come
to the pc, you hate it, you create a new profile, then you
should have a 'fresh' profile, not a copy...
ok, thx Jonne for finding this! I'll try and fix it now!
KKRT
On Wed, Sep 06, 2006 at 05:28:42PM +0200, Jonne Zutt wrote:
> Think I know where the new profile bug is coming from,
> but I have to leave quickly now, so let me just explain.
>
> 1) Add new profile
> -> AddProfileWin calls AddProfileOK calls
> CreateProfile (in config.tcl)
>
> 2) CreateProfile copies HOME2/settings.xml to HOME/settings.xml
> This create a HOME/settings.xml with keep_logs set to 0
> in your own profile
>
> 3) load_config ; save_config is called.
>
> Now what happens in load_config:
>
> 3a) ::config::configDefaults is called that sets keep_logs to 1.
> then HOME/settings.xml is loaded, which sets it to 0 again !!!
>
>
> So, the bug, I think now, is this:
> Normally, you want to load defaults first, then load the
> HOME/settings.xml.
> But for a new profile, you'd want this the other way around.
>
> I'm not sure how to solve this the best way yet, and have no time to
> think about it anymore right now, but this might be it:
>
> - CreateProfile does not copy HOME2/settings.xml to
> HOME/settings.xml anymore. (line 1181)
> - load_config has an if statement, give it also an else:
> ::config::configDefaults
> if { [file exists [file join ${HOME} "config.xml"]] } {
> // unchanged
> loading HOME/settings.xml
> } else { //this is new
> copy HOME2/settings.xml to HOME/settings.xml,
> but do not load it!
> }
>
>
> JeeBee.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Amsn-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/amsn-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Amsn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amsn-devel