<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Stephen,<br></div><div><br></div><div>Many thanks for your detailed and useful reply.  Hopefully Allen can investigate some of the options regarding the window manager information you have given.<br></div><div><br></div><div>I must say, I did think your solution of killing mythfrontend via the remote to be a good and elegant one.  Given that a remote is nearly always to hand, it's about as user-friendly as it could be.  So far, we have gone down this rabbit hole a bit - the question now is whether to go further down it or give up...<br></div><div><br></div><div>Here is what I think is happening:<br></div><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 10 Mar 2019 at 06:56, Stephen Worthington <<a href="mailto:stephen_agent@jsw.gen.nz">stephen_agent@jsw.gen.nz</a>> wrote: <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Looking at the contents of /usr/bin/mythfrontend, the first line of<br>
code is this:<br>
<br>
pidof mythfrontend.real 2>&1 >/dev/null && wmctrl -a "MythTV Frontend"<br>
2>/dev/null && exit 0<br>
<br>
Which should make the script exit if mythfrontend.real is already<br>
running, and prevent multiple copies from being run.<br></blockquote><div><br></div><div>Having sorted out the ctrl-alt-backspace issue, we moved on to sorting out the automatic log in to LightDM after a ctrl-alt-backspace issue.  I think the solution to the automatic log in issue is what is making the shell script above fail, likely wmctrl returns false, so the wrapper does not exit...<br></div><div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Clicking on the Edit button reveals that this runs:<br>
  mythfrontend --service<br></blockquote><br></div><div> ...so where I was going with this was to ultimately suggest running mythfrontend without the --service option, which bypasses the automatic restart functionality.  Obviously, a disadvantage of that would be that if mythfrontend crashes and exits, no automatic restart would be performed and I guess the "user-friendly" way to deal with that would become ctrl-alt-backspace...<br></div><div><br></div><div></div><div>Cheers, Ian</div><div><br></div></div></div></div></div></div>