I have a service that starts up at boot time that monitors a UPS. Each time a user logs in, I need to display a dialog saying that the UPS is connected, disconnected, etc. Is there a way my application can know when a user logs in and display the dialog?
The application must run at the login screen in case the UPS goes offline and the system needs to shutdown. Plus root permissions are required, so it can't just be ran in the user's startup script.
Every single user on the system needs to get the dialog, so it's not a simple matter of adding it the the user's .profile.
Thanks for any help you can provide.