Skip to content
Christian Jungerius edited this page Jan 31, 2022 · 21 revisions

Before you start

Here we go through how to create a custom launcher plugin for AKL. We assume you already know all the basics about how to code with python, how to create kodi addons and how to work with git. On this page we only go in to the specifics about the needed code, so if not prepared, start here.

Code examples

A good example is the default plugin for AKL. Get the code here. We will refer to this codebase.

The launcher base class: LauncherABC

Although it is completely possible to code everything yourself the way you like, there is some code in module package that can make it easier. You will need to create your own implementation of the LauncherABC class which you can import from akl.launchers from the script.akl.module package.

When extending this class you will need to implement the following abstract methods.

get_name()

A simple method to give back the 'friendly' name of this addon.

get_launcher_addon_id()

This will return the addon id.

_builder_get_wizard()

The base class will take care of picking the correct executor, a class that decides depending on the OS how it should execute external applications or scripts.