Automatically execute applications after Linux system login

  

This example describes how to automatically run the program after logging in to the system, such as Windows Auto Action QQ.

The content of this example is: After logging in to the system, the EVA application is automatically run.

In fact, this example is quite simple, just know what script files it needs to execute after the system logs in. Which scripts did the system run after logging in?

The answer is: script files such as .bash_profile and bashrc in the root directory, and bash_profile is the first one to execute. So, just add the following statement under this script:

[root@localhost ~]# vim ~/.bash_profile

Add the content as:

export DISPLAY =:0 &&eva &

Save and exit.

Finally, restart the system to achieve.

Copyright © Windows knowledge All Rights Reserved