Opened 12 years ago

Closed 11 years ago

#4571 closed patch (fixed)

Add popup menu to the main menu to allow shutdown

Reported by: james.meyer@… Owned by: stuartm
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

The attached patch enables the "menu" key to show a popup menu to allow a system shutdown or reboot.

The popup menu will only be shown when the exit key for mythfrontend has a modifer attached to it. In other words if the exit key is set to ESC or "No exit key" then the popup menu will NOT appear.

The reason behind this patch is fairly striaghtforward.

I don't want 'Escape' to leave the frontend, but would still like the option to shutdown the system from a remote.

Attachments (6)

myththemedmenu.h.patch (664 bytes) - added by james.meyer@… 12 years ago.
myththemedmenu.cpp.patch (2.1 KB) - added by james.meyer@… 12 years ago.
myththemedmenu.cpp.2.patch (3.6 KB) - added by james.meyer@… 12 years ago.
myththemedmenu.h.2.patch (689 bytes) - added by james.meyer@… 12 years ago.
svn_main_menu_popup.patch (5.7 KB) - added by james.meyer@… 11 years ago.
updated patch for sv rev 19291
popup_menu_rev20834.patch (5.6 KB) - added by james.meyer@… 11 years ago.
updated patch for main_menu popup. This patch replaces all others

Download all attachments as: .zip

Change History (16)

Changed 12 years ago by james.meyer@…

Attachment: myththemedmenu.h.patch added

Changed 12 years ago by james.meyer@…

Attachment: myththemedmenu.cpp.patch added

Changed 12 years ago by james.meyer@…

Attachment: myththemedmenu.cpp.2.patch added

Changed 12 years ago by james.meyer@…

Attachment: myththemedmenu.h.2.patch added

comment:1 Changed 12 years ago by james.meyer@…

Updated patches to include an "About" screen. This popup will show the revision number of myth and the branch. In addition it will try to read /etc/os_myth_release for extra information to display. This is inteneded for distro's to show their release information.

comment:2 Changed 12 years ago by james.meyer@…

Might be worthwhile to remove the "About" header from the about popup. This would give more space to display extra info.

comment:3 Changed 12 years ago by Nigel

James, nothing wrong with adding a generic menu action in any themed menu, but I'm curious why you didn't just add a menu button which did 'EXEC shutdown -h now' or similar?

comment:4 Changed 11 years ago by Dibblah

Status: newinfoneeded_new

Hi James,

Have you tried using mythwelcome instead of mythfrontend?

The functionality you desire is already implemented there - Exiting from the frontend returns to mythwelcome, which allows shutdown, etc.

Cheers,

Allan.

Changed 11 years ago by james.meyer@…

Attachment: svn_main_menu_popup.patch added

updated patch for sv rev 19291

comment:5 Changed 11 years ago by james.meyer@…

Added patch for svn & also accounts for "overrideexitmenu"

comment:6 Changed 11 years ago by danielk

Resolution: wontfix
Status: infoneeded_newclosed

No reply to infoneeded.

comment:7 Changed 11 years ago by stuartm

Resolution: wontfix
Status: closednew

comment:8 Changed 11 years ago by stuartm

Owner: changed from Isaac Richards to stuartm
Status: newaccepted

comment:9 Changed 11 years ago by stuartm

Status: acceptedinfoneeded

Patch no longer applies cleanly to trunk.

Changed 11 years ago by james.meyer@…

Attachment: popup_menu_rev20834.patch added

updated patch for main_menu popup. This patch replaces all others

comment:10 Changed 11 years ago by stuartm

Resolution: fixed
Status: infoneededclosed

(In [20852]) Adds a popup dialog accessible from the main menu using MENU which allows the system to be shutdown or rebooted. This duplicates functionality offered by mythwelcome but doesn't require the installation and configuration of that separate application. Also features a dialog giving version information. Patch by James Meyer with some small changes. Closes #4571

Note: See TracTickets for help on using tickets.