Well, I even emailed mythtv-users and the best workaround I managed to
come up with was the following:

Since you can change a setting in the mythtv options to disable
prompting on exit, when you click shutdown/reboot, it just quits mythtv
without asking (but doesn't shutdown/reboot the computer). If you place
mythtv in a wrapper script which shuts down the computer once
mythfrontend returns, it solves the shutdown problem. So, something like
this:

--
mythtv.sh

#!/bin/sh
mythfrontend
sudo /sbin/poweroff
--

You will need to add /sbin/poweroff to your sudoers file to give your
user permissions to poweroff the computer. Add something like this:

ALL ALL=(ALL) NOPASSWD: /sbin/poweroff

But check https://help.ubuntu.com/community/Sudoers for more info, since
it's better if you limit it to a specific user.

Unfortunately, I didn't find anything regarding reboot or logout.

-- 
Unable to logout, shutdown, restart, etc when Mythfrontend is running
https://bugs.launchpad.net/bugs/174712
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to