[mythtv-commits] mythtv commit: r24668 - in trunk/mythtv/libs by mdean

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Fri May 14 22:26:33 UTC 2010

      Author: mdean
        Date: 2010-05-14 22:26:33 +0000 (Fri, 14 May 2010)
New Revision: 24668
   Changeset: http://svn.mythtv.org/trac/changeset/24668




Fix the code that prevents users from starting MythTV applications without a valid configuration directory.

The Qt docs notwithstanding, QDir::homepath() /can/ return an empty string, now (likely changed in Qt4), so we need to handle that situation, too.  Also, if MYTHCONFDIR is specified and has $HOME in it, we can only use that path if HOME is defined.

This also removes an accidental paste into a comment from http://svn.mythtv.org/trac/changeset/22911/trunk/mythtv/libs/libmythdb/mythdirs.cpp , and uncomments the log message showing the "pre-HOME-replacement" value for MYTHCONFDIR (only) if a MYTHCONFDIR override is specified to make clear where values come from.

More information about the mythtv-commits mailing list