<html>
<head>
        <title>KDE FAQs</title>
</head>
<body>
<h2>Question: How do I run a program at KDE startup?</h2>
<p>
There are many ways to do that. If what you want to do is to run some scripts that would set some environment variables (what is useful for starting gpg-agent, ssh-agent and others), you can put these scripts under $KDEHOME/env/ and make sure their names end in ".sh" ($KDEHOME is usually a folder named ".kde" in your home folder). If you want scripts to be executed for all KDE users, you can put them under $KDEDIR/env/, where $KDEDIR is the prefix KDE was installed to.
</p>

<p>
If you want to start a normal program, however, there's a simpler way. Open a Konqueror window and choose "Auto-Start" in the "Go" menu. Simply drag entries from the KMenu and drop them in the Konqueror window, and that app will start automatically whenever you log into KDE.
</p>

<p>
But if all you want to do is to make sure KMail (or Konqueror, or KNode, or any other KDE application) is always started when you login, there's a better way: simply leave then running when logging out. Upon a re-login, all applications that were running will be started again and restored to the state they were left last time you logged out.
</p>

<h2>Question: How do I configure file associations?</h2>
<p>
In order to configure file associations, you should go to the KDE Control Center and choose the item "File Associations" under the category "KDE Components".
</p>

<p>
Supose the default PDF viewer is now KGhostview and you would prefer to use KPDF as a viewer. You would simply type "pdf" in the search box at the top of the dialog, choose "pdf" in the "application" group and move KPDF up. In the "Embedding" tab you can also choose which component other applications will use to visualize files (for example, when viewing files in Konqueror or using Ark's embedded viewer). 
</p>

<h2>Question: I installed KDE. How do I make it start with startx?</h2>
<p>
There is a shell script in your home folder named ".xinitrc". In order for KDE to be started with startx, you need to modify this script so that it starts the command "startkde". If the script doesn't exist, simply create one containing only "startkde".
</p>

</body>
</html>