[mythtv-commits] Ticket #12021: Add dependsexec to themecode

MythTV noreply at mythtv.org
Fri Jan 17 02:35:09 UTC 2014


#12021: Add dependsexec to themecode
-------------------------------------------------+-------------------------
     Reporter:  slackerlinux85@…                 |      Owner:  stuartm
         Type:  Patch - Feature                  |     Status:  new
     Priority:  minor                            |  Milestone:  unknown
    Component:  MythTV - User Interface Library  |    Version:  Unspecified
     Severity:  medium                           |   Keywords:
Ticket locked:  0                                |
-------------------------------------------------+-------------------------
 this small patch adds dependsexec to the ui code(im currently using a old
 version of this patch and it works great sofar)

 this checks for the existance of a file and if its executable and hides a
 menu entry if file doesnt exist or isnt executable

 example:
 {{{
      <button>
         <type>GAME</type>
         <text>Steam</text>
         <description>Launch steam</description>
         <action>EXEC steam</action>
         <dependsexec>/usr/bin/steam</dependsfileexec>
     </button>
 }}}
 would only show a menu entry for steam if its installed this could also be
 used to show xbmc the only downside is you have to edit the menu's it
 would be nice if there was a custom user menu that could be appended
 whatever menu theme you have selected

--
Ticket URL: <http://code.mythtv.org/trac/ticket/12021>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list