Re: .cthumbrc behavior
Carlos Puchol <[email protected]> Thu, 15 May 2003 02:58:53 -0700
| Newsgroups | gmane.comp.web.cthumb.devel |
|---|---|
| Message-ID | <[email protected]> |
hi terry,
makes sense. i have not sued my .cthumbrc for a while,
so i don't remember the semantics of it.
looking at the code, it seems like the priorities are
- album has the highest priorities
- then command line
- then cthumbrc
- and then the program defaults.
i.e.:
init_options ();
....
do_cthumbrc();
if ($opt{c}) { # create a plain album
&cmd_line_options();
do_album(\@ARGV);
exit 0;
}
i.e. the album gets processed the last, thus it has the highest
priority, then command line gets set the last before, thus it has the second
highest. and so forth.
the fact that some things are set forth as comments in the creation of
the albums is pretty much static, i.e. it is not tracked down which will
be the most interesting features to turn on for a user. the idea is to
have a template.
i do agree with you that if the user has things set in .cthumbrc, then it
probably would make sense to put them in generated albums, if they differ
from the default i guess.
whatever is the most useful...
-c
Terry Gliedt <[email protected]> wrote:
> I began documentation on .cthumbrc and discovered it did not behave as I
> expected. I wanted to start a conversation on how people think this
> SHOULD behave.
>
> First some background. The idea is that Cthumb has a set of attributes,
> coded in the @options table. This covers a lot of things. The values for
> these attributes can come from (1) the album file, (2) your .cthumbrc
> file and (3) your theme (theme.conf).
>
> I'm not exactly sure of the other these get applied, but here's what
> **I** expected (this is not how it DOES happen). I expected when one
> creates an album file, your .cthumbrc file attributes would be applied,
> providing a set of defaults. So for instance, I always want
> 'AutoSlideShow 1', so I expected to put that in my .cthumbrc file and it
> would force this to be set in my album and not just put there as a
> comment (as is the case now).
>
> Running Cthumb on an existing album file, I expect only theme attributes
> to be applied - and only if they were not set in the album. (i.e. apply
> theme attributes to the program defaults, THEN apply the album
> attributes). I don't think the .cthumrc file should be used again in
> this case.
>
> There are some rules about what attributes can be set in what place. A
> small set are for themes only and cannot be in the .cthumbrc file.
> Anything CAN be set in the album file.
>
> What do you all think?
>
>
> --
> ================================================================
> Terry Gliedt [email protected] http://www.hps.com/~tpg/
> Software Toolsmiths Solving Software Development Problems
>
>
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.com
>
> _______________________________________________
> Cthumb-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cthumb-devel
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com