[mythtv] [PATCH] MythContext wrappers for PREFIX

Jeremiah Morris jm at whpress.com
Sun Dec 5 20:05:27 UTC 2004


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: prefix.diff.bz2
Type: application/octet-stream
Size: 2975 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20041205/867a4ca5/prefix.diff.obj


More information about the mythtv-dev mailing list