On Fri, 2008-06-13 at 17:35 +0200, Alvaro Lopez Ortega wrote: > There is something that we could do, though. How useful do you think > that would be to have an importer that only shows up in the > configuration Mime Page if /etc/mime.types is present?
On most systems that have /etc/mime.types , a file named ~/.mime-types will over-ride what's in /etc on a per user basis. Rather than check for /etc/mime.types, it might be better to check for ~/.mime-types (in most cases this expands to /root/.mime-types), since these settings would take precedence anyway. Of course we can't rely on tidle expansion, but you get the point. For instances where Cherokee is being set up to start on a higher port by an underprivileged user, ~/.mime-types guarantees that the user's (not system's) preferences are imported. Someone can very easily just copy over /etc/mime.types and make it their own. This avoids breakage when OS updates clobber the file in /etc. Regards, --Tim -- Monkey + Typewriter = Echoreply ( http://echoreply.us ) _______________________________________________ Cherokee mailing list [email protected] http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee
