[mythtv-users] Run script on frontend exit?

Richard Shaw hobbes1069 at gmail.com
Sat Jan 22 14:47:19 UTC 2011


On Fri, Jan 21, 2011 at 1:15 PM, Stefan Enzinger
<stefan.enzinger at student.tugraz.at> wrote:
> On 01/21/2011 07:41 PM, Richard Shaw wrote:
>> I start unclutter on my combined BE/FE so the mouse cursor will hide
>> when I launch Hulu Desktop from Myth. It would nice if there was an
>> easy way to kill unclutter when I exit the FE as the kids use it for a
>> general purpose computer when we're not watching TV.
>
> I'd write a wrapper startscript for the frontend.
> When the FE stops, just kill unclutter.
>
> #!/bin/sh
>
> /usr/bin/unclutter
> /usr/bin/mythfrontend
> /usr/bin/killall unclutter
>
> exit 0

I thought of that method but was looking for a more elegant solution.
Not that it matters in reality, but I think of scripts as things that
"do something" and exit, whereas this would sit there for potentially
days.

Thanks,
Richard


More information about the mythtv-users mailing list