Ticket #10135 (closed Patch - Feature: fixed)
Opened 19 months ago
Last modified 18 months ago
Add a command line option to start the frontend in a jumppoint
| Reported by: | [R] <ginsu.squirrel@…> | Owned by: | wagnerrp |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.25 |
| Component: | MythTV - General | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
This patch adds 2 options to the frontend, --jumppoint and --runplugin. You can pass the full name of a jumppoint and the frontend will start there after loading, for example mythfrontend --jumppoint "TV Recording Playback". --runplugin works the same as the old way of passing the name of the plugin as the last option, mythfrontend --runplugin weather.
After discussing with sphery and wagnerrp on IRC, this patch removes the ability to symlink mythfrontend to the name of a plugin and it removes the ability to pass the name of a plugin as the last option, in favor of --runplugin. Additionally, it fixes a bug introduced in [b0165b23], which switched the logic on run_plugin(), which would cause the frontend to lockup if it was passed the name of a nonexistent plugin.
Attachments
Change History
comment:1 Changed 19 months ago by wagnerrp
- Owner set to wagnerrp
- Status changed from new to accepted
- Milestone changed from unknown to 0.25
comment:2 Changed 18 months ago by Github
- Status changed from accepted to closed
- Resolution set to fixed
Add --jumppoint and --runplugin to mythfrontend
This adds two new options for mythfrontend. --jumppoint will immediately jump to the specified point when the frontend has finished loading. --runplugin will jump to the base window of the specified plugin. Both will terminate if an invalid name is given.
This removes the old behavior of allowing plugin access through alternate executable file names, or extra arguments on the command line.
Closes #10135
Signed-off-by: Raymond Wagner <rwagner@…>
Branch: master Changeset: 32c1268a8ba3b3276b3148235b824b57eaa7c3a2
comment:3 Changed 18 months ago by Github
Allow --jumppoint and --runplugin to print available destinations
This adds methods to MythMainWindow? and MythPluginManager? to allow enumeration of available jump points and plugins, and uses it to list them when an invalid one is supplied on the command line. This causes a ABI bump.
Also, this moves the code to load a specific plugin to just prior to normal program init in the frontend, ensuring certain background tasks get initialized.
Refs #10135
Branch: master Changeset: ca52816fd809366f0298b20e603f9f14f51a3c0a
