I wanted to create applet for MATE.
I started digging and checking tutorials, forums, source codes on github.
Finally I decided to write it to remeber it.
Applet requires three files:
your-folder/TestApplet.py /usr/share/mate-panel/applets/TestApplet.mate-panel-applet /usr/share/dbus-1/services/TestAppletFactory.service
Some examples on internet use names with prefix
org.mate.panel.applet. but it works without those prefixes.
They are rather for uniq names - so you can install two applets with name
You can install
.service once. Inside these files you have to change path to your
install.sh to (re)install these files. You may have to edit it if you don't use name
Applet will NOT display
print() because it has no access to terminal.
But first you can run applet in terminal to see any errors/typos in code.
You can add and remove applet ro panel to test it OR you can use mate-panel-test-applets
to run it from terminal without installing. But applet still will not display
I don't know how to start it with parameter
--iid to run
To see any debug messages you can use module
logging and save messages in file to see them after stoping applet.
I took this part from mate-i3-applet
Refresh text on label
Some applets which I previewed to learn it
Examples how to extends right menu with ActionGroup
All started with this
Tool(s) to run applet without installing it manually (again and again)
/usr/lib/gnome-panel/mate-panel-add --applet=OAFIID:MATE_DockBarXApplet --panel=top_panel_screen0 --position=500 mateconftool-2 --all-dirs /apps/panel/toplevels