Opened 12 years ago
Closed 11 years ago
Last modified 11 years ago
#12021 closed Patch - Feature (fixed)
Add dependsexec to themecode
Reported by: | 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)
Change History (5)
by , 12 years ago
Attachment: | mythtv-dependsexec.patch added |
---|
comment:1 by , 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 , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:4 by , 11 years ago
Milestone: | unknown → 0.28 |
---|
adds dependsexec to themecode