Autostart

Anne-Marie Mahfouf

Revision KDE 4.12 (2013-12-05)

Autostart Manager

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

Note

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

Note that you can change the location of your Autostart folder in Account DetailsPaths in the Common Appearance and Behaviour category of the System Settings 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).

Note

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 (only enabled for programs i.e. Desktop files) 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 (i.e. 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.