Modify

Opened 11 years ago

Closed 10 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)

mythtv-quitmenu1.diff (2.2 KB) - added by directhex@… 11 years ago.
Exit menu patch
mythtv-quit-reboot.diff (1.4 KB) - added by cythrault@… 11 years ago.
add exit & reboot
3446-mfe-quit-reboot-menu-combined.diff (7.4 KB) - added by Nick Morrott <<knowledgejunkie [at] gmail [dot] com>> 10 years ago.
Provides configurable shutdow/reboot exit menu options for SVN trunk

Download all attachments as: .zip

Change History (8)

Changed 11 years ago by directhex@…

Exit menu patch

comment:1 Changed 11 years ago by cythrault@…

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.

Changed 11 years ago by cythrault@…

add exit & reboot

comment:2 Changed 11 years ago by a.m.gregory@…

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 Changed 10 years ago by Nick Morrott <<knowledgejunkie [at] gmail [dot] com>>

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

Changed 10 years ago by Nick Morrott <<knowledgejunkie [at] gmail [dot] com>>

Provides configurable shutdow/reboot exit menu options for SVN trunk

comment:4 Changed 10 years ago by paulh

  • Milestone changed from unknown to 0.21
  • Owner changed from ijr to paulh
  • Version changed from 0.20-fixes to head

comment:5 Changed 10 years ago by paulh

  • Resolution set to fixed
  • Status changed from new to 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.

Add Comment

Modify Ticket

Action
as closed The owner will remain paulh.
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.