# Autostart

&Anne-Marie.Mahfouf;
2008-03-21
1.0
KDE
System Settings
autostart
desktop file
script file

## Autostart Manager

This module is a configuration tool for managing what programs start up with &kde;. It allows you to add programs or scripts so they automatically start during the startup of &kde; and to manage them.

Please note that in this module all changes are immediately applied.

The program scans `~/.config/autostart/`, your `KDE Autostart` folder (`$KDEHOME/Autostart` as default), `$KDEHOME/env` and `$KDEHOME/shutdown` folders to check what programs and scripts are already there and displays them. It allows you to manage them easily.

Note that you can change the location of the `Autostart` folder in Startup and Shutdown Autostart in the System Administration category of the &systemsettings; and set a different folder than `$KDEHOME/Autostart`.

### Files display

The main part of the module displays the programs that are loaded when &kde; starts and scripts that are run when &kde; starts, shutdowns or before &kde; starts.

Name

  You cannot amend this column. It states the name of the program or script you want to start with &kde;. The name is extracted from the Desktop file from the Name key for a program and is the filename for a script.

Command

  This column lists the commands that are run to start the program. Commands can be modified through the Properties button or by double clicking the program/script row. The command is extracted from the Desktop file from the Exec key.

  For a script the command is the path to the script.

Status

  This setting is only available for programs through Desktop files. You can keep a program in the `Autostart` folder but disable it from being run at &kde; start. Setting the program to Disabled will not run it on start.

  Setting a program to Disabled sets the Desktop file Hidden property to true in the `Autostart` folder.

Run On

  Programs (Desktop files) can only be run on startup. Scripts can be run on Startup, Shutdown or Pre-KDE Startup. This column allows you to change when your script is run. Startup is when &kde; starts, shutdown is when you log out of &kde; and pre-KDE startup is before &kde; starts.

  Scripts and desktop files set to run on Startup are copied or symlinked in `$KDEHOME/Autostart` and will be run during &kde; startup.

  Scripts set on to be ran on Shutdown are copied or symlinked in the `$KDEHOME/shutdown` directory and will be automatically run during &kde; shutdown after the user has logged out.

  Scripts set to run at Pre-&kde; Startup are copied or symlinked in `$KDEHOME/env` and are sourced during &kde; startup (the `startkde` script will look for scripts here).

  Only scripts with the `sh` extension can be read by &kde; for Pre-&kde; startup and Shutdown modes.

### Actions

On the right you have some buttons to change the way Autostart is configure. You can add programs or scripts, remove them or change their properties.

Add Program

  Clicking this button displays the standard &kde; Choose Application dialog and allows you to choose which program you want to start. After choosing the program, clicking OK brings you the properties for this program.

  This will copy the program Desktop file in your `Autostart` folder.

Add Script

  This button opens a dialog which asks you for the location of the script you want to add. If you keep Create as symlink checked (default) then the script will be added as a symlink. If you uncheck this option then the script will be copied in the corresponding local folder.

Remove

  Remove will immediately remove the Desktop file for the program or the script or symbolic link in the `Autostart` folder.

Properties

  This button allows you to change the properties of the program or script. You have general properties, permissions properties, a preview when applicable and properties related to the application for programs.

Advanced

  This button only applies to programs (&ie; Desktop files). A dialog asks you if you only want the program to autostart only in &kde; (and not in other desktop environments you might run). By default, the program will autostart in all desktop environments you might run. Checking Autostart only in KDE will autostart the program only if you start the &kde; desktop environment.

  This sets the value KDE to the OnlyShowIn key of the program Desktop file.