Opened 14 years ago
Closed 14 years ago
#7662 closed patch (fixed)
Patch to display help in mythfrontend if there is no configured X server
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.23 |
Component: | MythTV - General | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
This is a simple patch so that mythfrontend -h will display the help text even if there is no X Server to attach to.
Thanks!
Doug
Attachments (3)
Change History (8)
Changed 14 years ago by
Attachment: | help.patch added |
---|
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Patch #2 is slightly more complicated. It allows a calling program (e.g. mythfrontend) to send a callback to the command line parser. This callback then gets passed what the command liner parser would have printed as a QString. This enabled mythfrontend to print its specific parameters as well as a formatted string of the generic parameters in a way that looks normal.
Changed 14 years ago by
Attachment: | help3.patch added |
---|
comment:3 Changed 14 years ago by
help3.patch has a slight change to the callback to take a MythCommandLineParser? instead of a QString. This allows the ShowUsage? functions in mythfrontend and mythwelcome to stay exactly the same. The MythCommandLineParser? now passes itself in the callback so that the calling function can do whatever it wants with the parser. This also adds mythwelcome to the patch which was the only other executable I found that has this issue.
comment:4 Changed 14 years ago by
Milestone: | unknown → 0.23 |
---|---|
Owner: | changed from Isaac Richards to danielk |
Status: | new → accepted |
hmmm - this raises a new issue in that it shows the generic help and not the mythfrontend specific help. I think this patch needs some additional work.