dwww Home | Show directory contents | Find package

<FILENAME filename="index.html"><html><head><title>Autostart</title><link rel="stylesheet" type="text/css" href="help:/kdoctools5-common/kde-default.css"><link rel="stylesheet" type="text/css" href="help:/kdoctools5-common/kde-docs.css"><link rel="stylesheet" type="text/css" href="help:/kdoctools5-common/kde-localised.css"><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><meta name="keywords" content="KDE, System Settings, autostart, desktop file, script file"><link rel="home" href="index.html" title="Autostart"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="GENERATOR" content="KDE XSL Stylesheet V1.14 using libxslt"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div id="content"><div id="header"><div id="header_content"><div id="header_left"><div id="header_right"><img src="help:/kdoctools5-common/top-kde.jpg" width="36" height="34"> Autostart</div></div></div></div><div class="navCenter"><table class="navigation"><tr><td class="prevCell"></td><td class="upCell"> </td><td class="nextCell"></td></tr></table></div><div id="contentBody"><div lang="en" class="article"><div class="titlepage"><div><div><h2 class="title"><a name="autostart"></a>Autostart</h2></div><div><div class="authorgroup"><p class="author"><span class="firstname">Anne-Marie</span> <span class="surname">Mahfouf</span> </p></div></div><div>Revision <span class="releaseinfo"><span class="productname">Plasma<br></span> 5.20 (<span class="date">2021-04-05</span>)</span></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="sect1"><a href="index.html#kcm_autostart">Autostart Manager</a></span></dt><dd><dl><dt><span class="sect2"><a href="index.html#migration">Migration from <span class="orgname">KDE</span> Workspaces 4</a></span></dt><dt><span class="sect2"><a href="index.html#disabling_autostart">Disabling Autostart Files Provided by Your Distribution</a></span></dt><dt><span class="sect2"><a href="index.html#current">Files display</a></span></dt><dt><span class="sect2"><a href="index.html#actions">Actions</a></span></dt></dl></dd></dl></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="kcm_autostart"></a>Autostart Manager</h2></div></div></div><p>This module is a configuration tool for managing what programs start up with your personal <span class="productname">Plasma</span>. It allows you to add programs or scripts so they automatically run during startup or shutdown of your <span class="productname">Plasma</span> session and to manage them.</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Please note that in this module all changes are immediately applied.</p></div><p>The program scans <code class="filename">$HOME/.config/autostart/</code> for applications and login scripts, <code class="filename">$HOME/.config/plasma-workspace/env</code> for pre-startup scripts and <code class="filename">$HOME/.config/plasma-workspace/shutdown</code> for logout scripts to check what programs and scripts are already there and displays them. It allows you to manage them easily.
</p><p>Login scripts are <code class="filename">.desktop</code> files with a <code class="literal">X-KDE-AutostartScript=true</code> key. Pre-startup scripts are run earlier and can be used to set environment variables.
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>Note that you can change the location of your <code class="filename">Autostart</code>
folder in <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenu">Applications</span></span> → <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenuitem">Locations</span></span> 
in the <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guilabel">Personalization</span></span> category of the <span class="application">System Settings</span> and set a different folder 
than <code class="filename">$HOME/.config/autostart</code>.</p></div><p>Please read also <a class="ulink" href="help:/kcontrol/kcmsmserver" target="_top">Desktop Session</a> and <a class="ulink" href="help:/kcontrol/kded" target="_top">Background Services</a> for information how to configure the startup behavior of your <span class="productname">Plasma</span> session.</p><p>Some <span class="orgname">KDE</span> applications handle the autostart behavior on their own, <abbr class="abbrev">e.g.</abbr> you can enable or disable autostart of an application in the settings dialog (<span class="application">KAlarm</span>) or you have to use <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenu">File</span></span> → <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenuitem">Quit</span></span> (<span class="application">Konversation</span>, <span class="application">Kopete</span>), otherwise the application is still running in the systemtray and will be restarted on next login.
</p><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="migration"></a>Migration from <span class="orgname">KDE</span> Workspaces 4</h3></div></div></div><p>To migrate your personal autostart setting from <span class="orgname">KDE</span> Workspaces 4:</p><table border="0" summary="Simple list" class="simplelist"><tr><td>Copy desktop files from <code class="filename">$HOME/.kde/Autostart</code> to <code class="filename">$HOME/.config/autostart</code></td></tr><tr><td>Copy pre startup script files from <code class="filename">$HOME/.kde/Autostart</code> to <code class="filename">$HOME/.config/plasma-workspace/env</code></td></tr><tr><td>Copy shutdown script files from <code class="filename">$HOME/.kde/Autostart</code> to <code class="filename">$HOME/.config/plasma-workspace/shutdown</code></td></tr></table></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="disabling_autostart"></a>Disabling Autostart Files Provided by Your Distribution</h3></div></div></div><p>The correct way to disable an autostart item, for example the printer-applet if you use printer from time to time, is to copy its <code class="filename">.desktop</code> file to your personal autostart folder. Anything of the same name in <code class="filename">$HOME/.config/autostart</code> overrides the <code class="filename">.desktop</code> file in the default package. Add the following line to the copied <code class="filename">.desktop</code> file:</p><pre class="programlisting">
Hidden=true
</pre></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="current"></a>Files display</h3></div></div></div><p>The main part of the module displays the programs that are loaded when <span class="productname">Plasma</span> starts and scripts that are run when <span class="productname">Plasma</span> starts or shutdowns.</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guilabel">Icon</span></span></span></dt><dd><p>
This column shows the icon of the program or script you want to start with <span class="productname">Plasma</span>. The icon is extracted from the Desktop file from the Icon key for a program and is the default icon for a script.
</p></dd><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guilabel">Name</span></span></span></dt><dd><p>
This column shows the name of the program or script you want to start with <span class="productname">Plasma</span>. The name is extracted from the <code class="filename">.desktop</code> file from the <code class="literal">Name</code> key for a program and is the filename for a script.
</p></dd><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guilabel">Properties</span></span></span></dt><dd><p>
This button is only shown when you hover the item with the mouse pointer. The button (only enabled for programs and login scripts <abbr class="abbrev">i.e.</abbr> <code class="filename">.desktop</code> 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 or login script. The default command is extracted from the <code class="filename">.desktop</code> file from the <code class="literal">Exec</code> key.
</p><p>
For a logout script, the command is the path to the script and can not be modified.
</p></dd><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guilabel">Remove</span></span></span></dt><dd><p>
This button is only shown when you hover the item with the mouse pointer. Pressing the <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guibutton">−</span></span> button will immediately remove the Desktop file for the program or the script or symbolic link in the <code class="filename">Autostart</code> folder.
</p></dd></dl></div></div><div class="sect2"><div class="titlepage"><div><div><h3 class="title"><a name="actions"></a>Actions</h3></div></div></div><p>
On the bottom, you have the combined <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guibutton">Add...</span></span> button to choose the type of item you want to add. You can add programs and login or logout scripts.
</p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenuitem">Add Program</span></span></span></dt><dd><p>
Clicking this item displays the standard <span class="productname">Plasma</span> <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guilabel">Choose Application</span></span> dialog and allows you to choose which program you want to start. After choosing the program, clicking <span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guibutton">OK</span></span> brings you the properties for this program. 
</p><p>
This will copy the program <code class="filename">.desktop</code> file in your <code class="filename">Autostart</code> folder. 
</p></dd><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenuitem">Add Login Script...</span></span></span></dt><dd><p>
This item opens a dialog that asks you for the location of the script you want to add. Scripts set to run on login will have a corresponding <code class="filename">.desktop</code> file created in your <code class="filename">Autostart</code> folder and will be run during Plasma startup.
</p></dd><dt><span class="term"><span xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" class="guiitem"><span class="guimenuitem">Add Logout Script...</span></span></span></dt><dd><p>
This item opens a dialog that asks you for the location of the script you want to add. Scripts set on to be run on logout are copied or symlinked in the <code class="filename">$HOME/.config/plasma-workspace/shutdown</code> directory and will be automatically run during <span class="productname">Plasma</span> shutdown after the user has logged out.
</p></dd></dl></div></div></div></div></div><div id="footer"><div class="navCenter"><table class="navigation"><tr><td class="prevCell"></td><td class="upCell"> </td><td class="nextCell"></td></tr><tr><td class="prevCell"> </td><td class="upCell"> </td><td class="nextCell"> </td></tr></table></div><div id="footer_text">Would you like to make a comment or contribute an update to this page?<br>Send feedback to the <a href="mailto:kde-doc-english@kde.org" class="footer_email">KDE Docs Team</a></div></div></div></body></html></FILENAME>

Generated by dwww version 1.15 on Thu Jun 27 10:09:23 CEST 2024.