Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#6524 closed patch (fixed)

Modify MythFrontend Plugin Bundling on OSX

Reported by: mythtv@… Owned by: Nigel
Priority: minor Milestone: unknown
Component: Ports - OSX Version: unknown
Severity: medium Keywords:
Cc: Ticket locked: no

Description

OSX bundles support easy configuration of plugins that are placed within the Contents/Plugins directory within the bundle. Performing a "Get Info" operation on the application bundle yields a pane containing a list of all of the plugins present within the Contents/Plugins directory, each with a tick-box allowing it to be easily enabled/disabled.

The osx-packager.pl script places the plugins for MythFronted? in Contents/Resources/lib/mythtv/plugins and therefore cannot take advantage of this functionality. Moving the plugins from Contents/Resources/lib/mythtv/plugins to Contents/Plugins and providing the necessary symbolic links enables the functionality.

Attachments (1)

bundle_plugins.patch (968 bytes) - added by mythtv@… 11 years ago.
Patch to move MythFronted? plugins to Contents/Plugins? inside bundle

Download all attachments as: .zip

Change History (11)

Changed 11 years ago by mythtv@…

Attachment: bundle_plugins.patch added

Patch to move MythFronted? plugins to Contents/Plugins? inside bundle

comment:1 Changed 11 years ago by Nigel

Status: newaccepted

Thanks for the patch, Peter. I wasn't even aware of that 'Get Info' feature.
There are also lots of improvements that should be made to the Created, Version, More Info and Languages sections, if you feel so inclined? e.g. Version should reflect the source SVN revision. The bundle script puts its version in there - that could go into More Info, with the osx-packager version, and maybe the person or org that packaged it? Language could maybe be derived from stuff in Resources/share/mythtv/i18n ?

comment:2 Changed 11 years ago by Nigel

(In [20492]) Plugin management from Finder's 'Get Info'. Simpler version of patch from Peter Stokes. See #6524.

comment:3 Changed 11 years ago by Nigel

Resolution: fixed
Status: acceptedclosed

(In [20493]) Plugin management from Finder's 'Get Info'. Simpler version of patch from Peter Stokes. Closes #6524.

comment:4 Changed 11 years ago by mythtv@…

I initially tried the simpler approach of making Contents/Plugins merely a symbolic link to Contents/Resources/lib/mythtv/plugins but it does not appear to work (on OSX 10.5.6 at least).

It appears to be necessary to do it the way it is done in the patch?

comment:5 Changed 11 years ago by Nigel

Resolution: fixed
Status: closednew

Do'h. Having Plugins as a symlink lists the plugins and lets you delete them, but not disable or enable them.

comment:6 Changed 11 years ago by Nigel

(In [20496]) Get Info package management. More like Peter's original patch, but still a little simpler (no loop needed). Refs #6524

comment:7 Changed 11 years ago by Nigel

Resolution: fixed
Status: newclosed

(In [20497]) Get Info package management. More like Peter's original patch, but still a little simpler (no loop needed). Closes #6524 (I hope!)

comment:8 Changed 11 years ago by mythtv@…

20497 gives:

Global symbol "$plug" requires explicit package name at ./osx-packager.pl line 1076.
Global symbol "$plug" requires explicit package name at ./osx-packager.pl line 1077.
Execution of ./osx-packager.pl aborted due to compilation errors.

The variable $plug is not declared.

The rationale behind the approach I took was that there may be other plug-ins that it may make sense to include in the list but that are not located in the Contents/Resources/lib/mythtv/plugins (for example those in Contents/Resources/lib/mythtv/filters directory).

However, a symbolic link from Contents/Resources/lib/mythtv/plugins to a directory of Contents/Plugins does work.

comment:9 Changed 11 years ago by Nigel

(In [20506]) Copy/paste omission in [20496]. Sigh. Refs #6524

comment:10 Changed 11 years ago by Nigel

(In [20507]) Copy/paste omission in [20497]. Sigh. Refs #6524

Note: See TracTickets for help on using tickets.