I am making a application on the Raspberry Pi, and I want it so if you login to the Pi directly, or through SSH, it will launch this application.
This application is made to only work in the terminal.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You can set up programs to run from login through that users
.bashrc. I would recommend using
.profile so it works with all shells.
If you have many users, instead of editing each
.profile, you could create a default profile at
/etc/profile and remove the current
.profile from their directories.
Add the entry like this: