[mythtv] [mythtv-commits] Ticket #4593: /.mythtv/ should *not* get created (blank homedir)
Michael T. Dean
mtdean at thirdcontact.com
Tue Feb 5 18:00:24 UTC 2008
On 02/05/2008 05:32 AM, MythTV wrote:
> #4593: /.mythtv/ should *not* get created (blank homedir)
>
>
> Comment:
>
> Yes, if HOME isn't set, QDir::homeDirPath() seems to return '/'. The real
> question is, what should it be in this situation? Current directory? /tmp?
Ignored? Shut down with an error (a descriptive error, that is) and
force the user to configure the system properly?
I think most (if not all) of the distros now have the HOME directory
thing under control in their start scripts and should be ready for a
change like this, so why even try to run in a "broken" configuration?
Writing to /tmp means that on many systems the configuration (i.e. for
mythfilldatabase, etc.) will get removed on reboot. The current
directory would mean that where the user starts the application
determines how it runs (and that "easy to change configuration" approach
should be something that must be explicitly requested--i.e. using
MYTHCONFDIR env var--rather than a fallback the user is unaware of).
Mike
More information about the mythtv-dev
mailing list