Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12021 closed Patch - Feature (fixed)

Add dependsexec to themecode

Reported by: slackerlinux85@… Owned by: paulh
Priority: minor Milestone: 0.28
Component: MythTV - User Interface Library Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no


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


        <description>Launch steam</description>
        <action>EXEC steam</action>

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

Attachments (1)

mythtv-dependsexec.patch (1.8 KB) - added by slackerlinux85@… 7 years ago.
adds dependsexec to themecode

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by slackerlinux85@…

Attachment: mythtv-dependsexec.patch added

adds dependsexec to themecode

comment:1 Changed 7 years ago by slackerlinux85@…

woops! that example is wrong <dependsexec>/usr/bin/steam</dependsfileexec> should be(no file in the closing dependsexec that was the old name for it) <dependsexec>/usr/bin/steam</dependsexec>

comment:2 Changed 7 years ago by paulh

Owner: changed from stuartm to paulh
Status: newaccepted

comment:3 Changed 7 years ago by slackerlinux85 <slackerlinux85@…>

Resolution: fixed
Status: acceptedclosed

In 2da59647f3ba247468a547a0fd9bfcc257e51618/mythtv:

MythThemedMenu?: Add dependsexec option to the main menu

This option allows for menu entries that will only be visible if a particular
executable is found. For example the menu entry below will add an XBMC menu
entry if the XBMC executable is found at /usr/bin/xbmc.


<description>Launch XBMC</description>
<action>EXEC xbmc</action>


Fixes #12021.

Signed-off-by: Paul Harrison <pharrison@…>

comment:4 Changed 7 years ago by paulh

Milestone: unknown0.28
Note: See TracTickets for help on using tickets.