Launching batch files

Is it possible to get a channel to simply launch a batch file when selected? I have one which will launch steam in big picture mode even if steam is already open and I want to integrate it with plex.

It's possible for a channel to run "helpers". I haven't messed with them in a long time and I'm not sure what types of files are supported or how well they're supported.

The documentation on the subject is pretty light but might be enough to get you going.

As I recall, if you actually plan on sharing your plugin around, you'll need to include specific helper for each platform you want to support ie. OSX, Windows, Linux.

I believe you need a "Helpers" folder inside the channel directory structure with separate sub-folders for the different supported platforms. I'll have to see if I can find an old example for reference.

I should also mention, this sort of arrangement will only work if you’re running PMS on the same machine as the client app (likely PHT), since channel code (and helpers) are executed on the PMS machine.

Here’s a link to a point in the commit history of the Unsupported Appstore back when it (briefly) used an external helper. The code is pretty much all out of date but I believe the bundle structure is more or less correct for what you need.
https://github.com/mikedm139/UnSupportedAppstore.bundle/tree/ed82762b7aa252f2a671469f09ef0e0fa58078c9/Contents

well i figured that would be the case. unfortunately I'm a complete noob in all things programming, what would a basic example look like? would it go in the _init_.py file?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.