Opened 11 years ago
Closed 10 years ago
Last modified 10 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)
Changed 11 years ago by
Attachment: | mythtv-dependsexec.patch added |
---|
comment:1 Changed 11 years ago by
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 10 years ago by
Owner: | changed from stuartm to paulh |
---|---|
Status: | new → accepted |
comment:3 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:4 Changed 10 years ago by
Milestone: | unknown → 0.28 |
---|
adds dependsexec to themecode