Opened 12 years ago

Closed 11 years ago

Last modified 11 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

Description

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

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

by slackerlinux85@…, 12 years ago

Attachment: mythtv-dependsexec.patch added

adds dependsexec to themecode

comment:1 by slackerlinux85@…, 12 years ago

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 by paulh, 11 years ago

Owner: changed from stuartm to paulh
Status: newaccepted

comment:3 by slackerlinux85 <slackerlinux85@…>, 11 years ago

Resolution: fixed
Status: acceptedclosed

In 2da59647f3ba247468a547a0fd9bfcc257e51618/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:4 by paulh, 11 years ago

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