ubuntu14.04 Start Autorun Application

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.