On 16/02/2008, <b class="gmail_sendername">Michael T. Dean</b> &lt;<a href="mailto:mtdean@thirdcontact.com">mtdean@thirdcontact.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 02/16/2008 01:01 PM, Paul Harrison wrote:<br>&gt; Ashley Bostock wrote:<br>&gt;<br>&gt;&gt; In mythwelcome if I bring up the menu and choose the &quot;Shutdown Now&quot;<br>&gt;&gt; option, nothing happens (used to work) and in the mythwelcome log I<br>
&gt;&gt; get this...<br>&gt;&gt;<br>&gt;&gt; mythshutdown --startup returned: 1<br>&gt;&gt; mythshutdown: Could not initialize myth context. Exiting.<br>&gt;&gt;<br>&gt;&gt; I&#39;ve seen people talk about it is due to the $HOME variable not being<br>
&gt;&gt; set, but running echo $HOME before starting mythwelcome does output<br>&gt;&gt; the correct directory.&nbsp;&nbsp;I&#39;ve also tried adding sudo -H to every place<br>&gt;&gt; I can find which runs mythshutdown but that makes no difference either.<br>
&gt;&gt;<br>&gt;&gt; My auto shutdown/wake up is working perfectly still, so it&#39;s only the<br>&gt;&gt; &quot;Shutdown Now&quot; option that&#39;s broken.<br>&gt;&gt; Is it working for anyone else?<br>&gt; It&#39;s probably something to do with the way mythwelcome does the<br>
&gt; shutdown. The command it uses is hardcoded to this:-<br>&gt; system(&quot;sudo &quot; + m_installDir + &quot;/bin/mythshutdown --shutdown&quot;)<br>&gt;<br>&gt; Not sure at this stage why some people are suddenly having problems, my<br>
&gt; parents machine has been running mythwelcome/mythshutdown for well over<br>&gt; 2 years now with no problems although they are still running svn that is<br>&gt; probably 6 months old now. Most problems can be traced to the user not<br>
&gt; having things setup right but if it was working and now isn&#39;t then I<br>&gt; suspect the new auto-discovery stuff may have a hand in it.<br><br>Exactly!&nbsp;&nbsp;Fix the environment in which mythwelcome/mythshutdown is<br>
executed to have a properly-exported HOME directory and everything will<br>work.<br><br>Mike<br>_______________________________________________<br>mythtv-users mailing list<br><a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users</a></blockquote><div><br>Thanks for the info.&nbsp; Any pointers on what a &quot;properly exported HOME directory&quot; requires?<br>
<br>If I type export, I can see HOME listed and set to the correct value.<br>If I type echo $HOME, it shows the correct value.&nbsp; But then running sudo mythshutdown, gives me the error.<br><br>I accept my system configuration is broken, but it&#39;s a stock Ubuntu install so if I can get some help in figuring out what needs to be fixed, then I&#39;m sure it&#39;ll save a lot of threads like this from others when 0.21 gets released to the masses.<br>
<br>Cheers,<br>Ash</div></div>