0

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.

Nils Lindemann
  • 1,146
  • 1
  • 16
  • 26

2 Answers2

1

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.

Nils Lindemann
  • 1,146
  • 1
  • 16
  • 26
0

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'
sayanel
  • 301
  • 2
  • 12