Opened 19 years ago
Closed 19 years ago
#3446 closed patch (fixed)
Enhancement: Configurable exit menu
| Reported by: | anonymous | Owned by: | paulh |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.21 |
| Component: | mythtv | Version: | head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
There are several use cases where the default mythfrontend exit menu is not appropriate:
- Running mythfrontend as an application on a desktop PC, you don't want to accidentally shut down the machine when quitting, but "Exit & Shutdown" is always shown on non-backend machines
- Running a dedicated frontend machine, you don't want to accidentally drop to a desktop when you mean to shut down the machine, but "Exit" is always shown
- Running a combined BE/FE, you cannot be CERTAIN that you will never want to shut down (for example, if a thunderstorm starts, you don't want to leave your machine turned on), but "Exit & Shutdown" is hidden on combined BE/FE machines.
The attached patch enables a configurable exit menu - the default behaviour is to proceed using the existing behaviour, and options are added in the frontend settings to override those choices - allowing inappropriate options to be shown or hidden to taste.
Trac seems determined to ignore my email address, so if someone feels like manually setting it to directhex@… after this ticket is submitted (and inevitably switched back to anonymous) that would be handy
Attachments (3)
Change History (8)
by , 19 years ago
| Attachment: | mythtv-quitmenu1.diff added |
|---|
comment:1 by , 19 years ago
Additionally, it would be interesting to have the option "exit & reboot" (and have the option to autodetect/force it's visibility with this proposed patch.) I have a crude hack at home that adds the "exit & reboot". I'll attach it when I get back this week-end.
comment:2 by , 19 years ago
That sounds really useful - just what I've been looking for my combined FE/BE set top box. Will this patch be incorporated into the next version of mythTV?
Thanks! Adam
comment:3 by , 19 years ago
I've been interested in this functionality and decided to update this ticket with an updated patch (against r14143) that contains configurable shutdown and reboot options, and adds the ability to choose which option is displayed via miscellaneous settings on the new settings pages committed recently.
Default behaviour is to keep things the same as before with the 'Shutdown' option only appearing on remote frontends.
The new options are:
Show quit
Show quit and shutdown
Show quit, reboot and shutdown
Show shutdown
Show reboot
Show reboot and shutdown
You may need to modify your /etc/sudoers file to give your mythtv user the permission to run reboot/halt.
This patch only contains the English text. Translations would be required for the new options.
Please test if interested and post and feedback (good or bad!)
Cheers, Nick
by , 19 years ago
| Attachment: | 3446-mfe-quit-reboot-menu-combined.diff added |
|---|
Provides configurable shutdow/reboot exit menu options for SVN trunk
comment:4 by , 19 years ago
| Milestone: | unknown → 0.21 |
|---|---|
| Owner: | changed from to |
| Version: | 0.20-fixes → head |
comment:5 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
(In [14327]) Allow the shutdown/exit menu to be configurable.
The new options are:
- Show quit
- Show quit and shutdown
- Show quit, reboot and shutdown
- Show shutdown
- Show reboot
- Show reboot and shutdown
Default behaviour is to keep things the same as before with the 'Shutdown' option only appearing on remote frontends.
Patch by Nick Morrott. Closes #3446.

Exit menu patch