ubuntu14.04 boot Autorun application-ydt_lwj column-Blog channel-csdn.net
Under Ubuntu there are many ways to start the program automatically, in the different process of booting can launch different programs. If you run the program automatically at boot-up, it is modified by placing the
???? /ETC/RC or
???? /ETC/RC.D or
???? /etc/rc?. D
?? The script file in the directory allows Init to start other programs automatically. For example: Edit
???? /etc/rc.d/rc.local file (This file is usually the last script launched by the system),
It is also possible for a user to log on when the user logs on, and bash automatically executes the global logon script established by the system administrator:
???? /ect/profile
?? Bash then looks for one of three special files in the user's start directory, in order:
???? /.bash_profile,
???? /.bash_login,
???? /.profile,
?? But only the one that was first found was executed. As a result, it is only necessary to add the command in the above file according to the actual need to
?? Automatically run certain programs when users log on
Two ways to start an application are described below:
Method 1: Locate the. desktop file for the boot loader you want to add below/usr/share/applications/, and then copy it to the. config/autostart/directory under your home directory, If you do not create the Autostart directory yourself, you can do so. When the home directory is launched, if other users login, if other users do not have the settings can not automatically login, if you want all users to automatically log in, you can/etc/xdg/ Autostart directory to write a. Desktop file, you can also use the/usr/share/applications directory of the. Desktop file method you want to launch into this directory, you can reach all users can automatically move the application.
Method 2: Executing gnome-session-properties in the terminal will bring up a "Start application preferences" menu if
Clicking Add will pop up the following dialog box:
Write the name of the app you want to launch, and the command is the location of the executable program for the app, and the generic executable is in the/usr/bin directory. Note can be written without writing
ubuntu14.04 Start Autorun Application