[mythtv-users] making the system shutdown when exiting mythfrontend

Simon Lundell simon at ida.his.se
Wed Apr 7 03:39:16 EDT 2004


James Colannino wrote:
> Is there a way to make the system actually shutdown after exiting
> mythfrontend?  I tried changing the General settings (I changed the
> halt command under Setup -> General to "halt") but it didn't have any
> effect. 
> 
> James
> 
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users 

This is my solution:
* uncomment the if statement that checks if the frontend is on the same
host as the backend, and recompile

    diag.AddButton(QObject::tr("Yes, Exit now"));
  //  if (!backendOnLocalhost)
        diag.AddButton(QObject::tr("Yes, Exit and Shutdown"));
 
* use sudo to allow the mythtv user to call poweroff
//Simon



More information about the mythtv-users mailing list