# Autostart

## Autostart-Verwaltung

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

Beachten Sie, dass alle Änderungen in diesem Dialog sofort angewendet werden.

The program scans `$HOME/.config/autostart/`, `$HOME/.config/plasma-workspace/env` and `$HOME/.config/plasma-workspace/shutdown` folders to check what programs and scripts are already there and displays them. It allows you to manage them easily.

The autostart feature has a bug, currently it is not possible to run a script after the startup of your &plasma; session.

Note that you can change the location of your `Autostart` folder in Applications Locations in the Personalization category of the &systemsettings; and set a different folder than `$HOME/.config/autostart`.

Please read also Desktop Session and Background Services for information how to configure the startup behavior of your &plasma; session.

Some &kde; applications handle the autostart behavior on their own, ⪚ you can enable or disable autostart of an application in the settings dialog (&kalarm;) or you have to use File Quit (&konversation;, &kopete;), otherwise the application is still running in the systemtray and will be restarted on next login.

### Migration from &kde; Workspaces 4

To migrate your personal autostart setting from &kde; Workspaces 4:

- Copy desktop files from `$HOME/.kde/Autostart` to `$HOME/.config/autostart`
- Copy pre startup script files from `$HOME/.kde/Autostart` to `$HOME/.config/plasma-workspace/env`
- Copy shutdown script files from `$HOME/.kde/Autostart` to `$HOME/.config/plasma-workspace/shutdown`

### Dateianzeige

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

Name

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

Befehl

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

  For a script the command is the path to the script and can not be modified.

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 &plasma; start. Unchecking the status Enabled the program will not run on start.

  Unchecking the status Enabled sets the Desktop file Hidden property to true in the `Autostart` folder.

Ausführungszeitpunkt

- 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 &plasma; starts, shutdown is when you log out of &plasma; and pre-KDE startup is before &plasma; starts.

  Scripts and desktop files set to run on Startup are copied or symlinked in `$HOME/.config/autostart` and will be run during &plasma; startup.

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

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

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

### Aktionen

Zur Rechten finden Sie einige Knöpfe, mit denen Sie das Verhalten von KDEs Autostart beeinflussen können. Hier können Sie Programme und Skripte hinzufügen, entfernen oder ihre Eigenschaften ändern.

Programm hinzufügen

- Clicking this button displays the standard &plasma; 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.

  Die Einrichtungsdatei des Programms wird in Ihren `Autostart`-Ordner kopiert.

Skript hinzufügen

- Dieser Knopf öffnet ein Dialogfenster, in dem Sie den Namen bzw. den Pfad zu einem Skript eingeben müssen, das Sie hinzufügen möchten. Wenn Sie die Einstellung Als Verknüpfung erstellen aktiviert lassen, wird das Skript als Verknüpfung hinzugefügt. Wenn Sie die Markierung bei dieser Einstellung entfernen, wird das Skript in den entsprechenden Ordner kopiert.

Entfernen

- Damit wird die Einrichtungsdatei des Programms, das Skript oder die symbolische Verknüpfung im Ordner `Autostart` sofort gelöscht.

Eigenschaften

- Mit diesem Knopf, der nur für Programme &ie; Desktop-Dateien aktiviert ist, können Sie die Eigenschaften eines Programms oder Skriptes ändern. Es gibt allgemeine Eigenschaften, sowie Rechte, eine Vorschau und Eigenschaften, die sich auf das ausführbare Programm als solches beziehen.

Erweitert

- This button only applies to programs (&ie; Desktop files). A dialog asks you if you only want the program to autostart only in &plasma; (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 &plasma; desktop environment.

  Damit wird der Wert „KDE“ für das Schlüsselwort OnlyShowIn in der Einrichtungsdatei des Programmes gesetzt.