Mythcontext.h has some nice wrappers to find MythTV resource directories, without using the compiled-in PREFIX path everywhere. Unfortunately, these wrappers haven't been used through the code. MythContext includes a way to change the PREFIX via an environment variable, for example, but it won't affect the loading of fonts, plugins, or translations.

The attached patch expands on the existing MythContext directory lookup routines, and replaces PREFIX string instances with the appropriate MythContext wrappers. This centralizes the resource locations, so that more sophisticated logic can be added later. (Imagine mythfrontend on a CD-ROM, that can read themes by using a relative path from the CD-ROM mount point. The OS X package has similar needs, so this patch is a prerequisite for the OS X binary.)

- Jeremiah


Attachment: prefix.diff.bz2
Description: Binary data

_______________________________________________
mythtv-dev mailing list
[EMAIL PROTECTED]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to