diff --git a/media-tv/mythtv/mythtv-35.0_p20250723.ebuild b/media-tv/mythtv/mythtv-35.0_p20250723.ebuild index e7d8bc15e1547..70ef5e09cf92a 100644 --- a/media-tv/mythtv/mythtv-35.0_p20250723.ebuild +++ b/media-tv/mythtv/mythtv-35.0_p20250723.ebuild @@ -149,6 +149,17 @@ python_check_deps() { python_has_version "dev-python/requests-cache[${PYTHON_USEDEP}]" } +pkg_pretend() { + if use autostart; then + local HOME_MYTHTV=$(egethome mythtv) + if [[ ! -z "${HOME_MYTHTV}" && ! -d "${HOME_MYTHTV}" ]] ; then + eerror "Home path '${HOME_MYTHTV}' for user 'mythtv' exists" \ + "but is not a directory" + die + fi + fi +} + pkg_setup() { use python && python-any-r1_pkg_setup }