[mythtv] $prefix/etc

Tony Clark tclark at telia.com
Sun May 11 12:33:23 EDT 2003


Here is a small diff that adds $prefix/etc to be searched for config files.  I 
find it useful to have global config options that don't get blasted away

tony


--- /pub2/mythtv/mythtv/libs/libmyth/oldsettings.cpp    2002-12-04 
06:33:22.000000000 +0100
+++ /pub/mythtv/mythtv/libs/libmyth/oldsettings.cpp     2003-05-11 
11:11:52.000000000 +0200
@@ -111,6 +111,9 @@
     QString setname = prefix + "/share/mythtv/" + filename;
     ReadSettings(setname);

+    setname = prefix + "/etc/mythtv/" + filename;
+    ReadSettings(setname);
+
     char *home = getenv("HOME");
     setname = QString(home) + "/.mythtv/" + filename;


-- 
Contract ASIC and FPGA design.
Telephone +46 702 894 667
http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0x633E2623





More information about the mythtv-dev mailing list