'Shell script in lightdm web-greeter v3.4.1

I've created a shell script to reboot windows, and I want to add a button in the lightdm web-greeter v3.4.1, to do this. How can I link my button (event onclick) to the script please ? If I try with javascript I have an error "require is not defined". Is there an other way ?

Thanks !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source