When logged in to a desktop environment, in power manager there is an option “When power button is pressed” and choices “ask”, “do nothing”, “shutdown”, etc. I was just wondering how one would go about ensuring when the power button is pressed at the login screen (lightdm) “ask” or “do nothing” was the setting, rather than the machine shutting down.
Sorry if i have put this in the wrong place, i figured to program you have to know stuff and so i had a better chance of a solution here.