LinHES Forums http://forum.linhes.org/ |
|
Adding Helpful Menu Options http://forum.linhes.org/viewtopic.php?f=6&t=14485 |
Page 1 of 1 |
Author: | timmyboy [ Wed Mar 07, 2007 12:01 am ] |
Post subject: | Adding Helpful Menu Options |
First, a disclaimer: I am not a Linux expert, nor a clean coder. I'm just a dirty get-it-done kind of guy. With that in mind, I have added some menu options to my install of KnoppMyth that have proven very helpful so that I don't have to hook a keyboard or mouse up to my box or VNC in or anything else. I can do it all from the menu. First New Option: Restart Backend This has proven invaluable in the latest install because of its occasional issue of failing to properly start the backend (unless this was fixed and I wasn't made aware). You can add this option to any of the menus. I put it in the KnoppMyth menu (/usr/share/mythtv/knoppmyth.xml). Here's the code to add: Code: <button> <type>POWER</type> <text>Restart Backend</text> <action>EXEC /usr/bin/sudo /etc/init.d/mythtv-backend restart</action> </button> Second New Option: Go to MythTV Setup (the one where you can configure the input sources and so forth) This has proven valuable in only a few instances - mainly when the channel lineup has been changed. I also put this in the KnoppMyth menu (/usr/share/mythtv/knoppmyth.xml). I put a corresponding "Jump to Frontend" in the MythTV Setup menu (/usr/share/mythtv/knoppmyth.xml). Here's the code for the menu item to go to the setup file: Code: <button> <type>POWER</type> <text>MythTV Setup</text> <action>EXEC /etc/mythtv/gotosetup.sh</action> </button> The code for /etc/mythtv/gotosetup.sh: Code: /usr/bin/sudo /etc/init.d/mythtv-backend stop /usr/bin/sudo /usr/bin/pkill -9 mythfrontend /usr/bin/mythtv-setup Don't forget to Code: chmod +x /etc/mythtv/gotosetup.sh Here's the code for the return type option in the MythTV setup menu: Code: <button> <type>POWER</type> <text>Jump to Frontend</text> <action>EXEC /etc/mythtv/gotofrontend.sh</action> </button> Code for /etc/mythtv/gotofrontend.sh: Code: /usr/bin/sudo /etc/init.d/mythtv-backend restart /usr/bin/sudo /usr/bin/pkill -9 mythtv-setup /usr/bin/mythfrontend Don't forget to Code: chmod +x /etc/mythtv/gotofrontend.sh
I hope this helps someone. If anyone thinks that doing this the way I did will cause some type of problem (it works great for me), please let me know. |
Author: | silentmic [ Wed Mar 07, 2007 4:49 am ] |
Post subject: | |
I got sick of going into the media library to watch recordings and videos so I made those options display above the "Watch TV" option on the main menu by copying the TV_WATCH_RECORDINGS and VIDEO_BROWSER entries from /usr/share/mythtv/library.xml to be the first entries in /usr/share/mythtv/mainmenu.xml |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |