Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#10135 closed Patch - Feature (fixed)

Add a command line option to start the frontend in a jumppoint

Reported by: [R] <ginsu.squirrel@…> Owned by: Raymond Wagner
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 (1)

jumppoint.patch (2.9 KB) - added by [R] <ginsu.squirrel@…> 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by [R] <ginsu.squirrel@…>

Attachment: jumppoint.patch added

comment:1 Changed 13 years ago by Raymond Wagner

Milestone: unknown0.25
Owner: set to Raymond Wagner
Status: newaccepted

comment:2 Changed 13 years ago by Github

Resolution: fixed
Status: acceptedclosed

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 13 years 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

Note: See TracTickets for help on using tickets.