[Cura] Notification/Script on print finish

We have several lulzbots setup in our university lab. We use Cura to print and are trying to figure out a way to run a python script when a print job is finished. Is this something that has been done previously, or you guys would know how to get setup? We’ve been diving into the source code of Cura for a few hours now but we aren’t turning up anything.

Our end goal is to be able to log a user out upon print completion, but that’s trivial once we have a way to run a script upon print completion. It doesn’t look like the current plug-in system is helpful.

You would almost have to run them via Octoprint or something similar to do that.