[mythtv-users] mythshutdown: Could not initialize myth context.Exiting.
Kiss Gabor (Bitman)
kissg at ssg.ki.iif.hu
Thu Apr 3 13:27:41 UTC 2008
On Sat, Feb 16, Michael T. Dean wrote:
>> It's probably something to do with the way mythwelcome does the
>> shutdown. The command it uses is hardcoded to this:-
>> system("sudo " + m_installDir + "/bin/mythshutdown --shutdown")
>>
>> Not sure at this stage why some people are suddenly having problems, my
>> parents machine has been running mythwelcome/mythshutdown for well over
>Exactly! Fix the environment in which mythwelcome/mythshutdown is
>executed to have a properly-exported HOME directory and everything will
>work.
The proper soulution would be if mythwelcome cares with
'ServerHaltCommand' config variable. (That is totally useless now.)
QString halt_cmd = gContext->GetSetting("ServerHaltCommand",
"sudo " + m_installDir + "/bin/mythshutdown --shutdown");
system(cmd);
Gabor
More information about the mythtv-users
mailing list