Contents

Introduction

This is a tutorial on how to write an interface for JavaScript addons for Plasma. Since the interface can be anything from a plasmoid to a dataengine and all the way to a service, this tutorial uses a plasmoid to write an interface for addons. Please note that this tutorial does not cover the whole plasmoid tutorial. To whole plasmoid tutorial can be found here.

Setting up

Before we start to program the little interface we need to do some setup.
First of all, we create a directory called MyJSInterface, where our interface will be located, with the following directory structure:

MyJSInterface/

contents/

code/

metadata.desktop

In the root directory of our addon, we create a file metadata.desktop with the following content: