[mythtv] [mythtv-commits] Ticket #4593: /.mythtv/ should *not* get created (blank homedir)
Michael T. Dean
mtdean at thirdcontact.com
Tue Feb 5 23:17:38 UTC 2008
On 02/05/2008 05:41 PM, Nigel Pearson wrote:
> Ignoring will not be a quick patch though -
> it has to support Unix, Unix running as root
> (where HOME might actually be '/'), and Windows.
> How about exit with a message like "Cannot continue -
> there is no home directory set for storing configuration.
> Please set the HOME or MYTHCONFDIR environment variables"
> That should cover the Unixes.
> (I will have to test what Windows needs)
I'd recommend leaving MYTHCONFDIR an "undocumented" approach--i.e. just
ask the user to set the HOME environment variable. If they are capable
of determining the consequences of running with a HOME directory and a
MYTHCONFDIR set to different values (i.e. capable of reading through the
code), they'll be able to find out about the MYTHCONFDIR. :)
More information about the mythtv-dev