Developing task bar applets for Cinnamon: How to reload the code?

333 Views Asked by At

Working on a Cinnamon Javascript applet (Example).

How can I reload the code, so that the applet in the task bar reflects the changes I make in the Javascript?

Manually removing the applet from the task bar and then re-adding it seems not to reload the code, and is cumbersome anyway. I have to log off and log in again to see the changes.

2

There are 2 best solutions below

0
Nils Lindemann On BEST ANSWER

Copying from my other answer:

Use the Melange-Cinnamon debugger. To open it:

  • Right click on the task bar and select TroubleshootLooking Glass.
  • Alternatively, press Win key + L.
  • Alternatively, press Alt + F2 → type "lg" → Enter.

Reload the code of the applet by finding the applet under the extensions tab, right click → reload code.

0
sayanel On

You can also reload the applet through command line, using

dbus-send --session --dest=org.Cinnamon.LookingGlass --type=method_call /org/Cinnamon/LookingGlass org.Cinnamon.LookingGlass.ReloadExtension string:'appletUUID' string:'APPLET'