Linux Lite Forums

Full Version: Notification on login
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, anybody knows how to make a notification appear when somebody logs in to an account. I am upgrading a PC and I want a message to appear after log in.
Hi liamjake05,

If you just want a notification shown without confirmation/ interaction you could add a line like this to the file /home/<user_name/.profile

Code:
notify-send "Big brother is watching you."

With confirmation/ interaction:

Code:
zenity --info --text="Big brother is watching you."

Hope that helps Smile
Thanks man, did not have a .profile file but used the following command to make one
Code:
touch .profile