Startup files

From ArchWiki

Jump to: navigation, search

Contents

Boot process

See The Arch boot process

Terminals

If you use Bash (Arch default) as your shell, ~/.bashrc executes and set's all the ENVIRONMENT VARIABLES for itself. You can put whatever you want here if you want it to startup each time you open an xterm etc.

X

Using Display Managers

See Display manager

Starting X by startx or xinit

~/.xinitrc executes.

DE startup files

If you want to autostart programs automatically when you login into your WM (Window Manager) and/or DE (Desktop Environment), you should do the following:

GNOME

~/.config/autostart/*

KDE

~/.kde/Autostart

XFCE

Gui solution

Programs that you wish to autostart on Xfce4 startup can be selected by using the xfce4-autostart-editor tool available in Xfce4 menu > Settings > Xfce 4 Autostarted Applications.

Non-gui solution

If the GUI is not desirable, you can put .desktop files in the ~/.config/autostart/ directory. If this directory does not exist, simply create it.

Note: In the Xfce versions prior to 4.4 the programs had to be located in ~/Desktop/Autostart.

Below is an example of creating an autostart for Pidgin:

$ cd ~/.config/autostart
$ touch pidgin.desktop

Now, this is the content of ~/.config/autostart/pidgin.desktop:

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=pidgin.desktop
Comment=Fantastic IM client
Exec=/usr/bin/pidgin
StartupNotify=false
Terminal=false
Hidden=false

Fluxbox

~/.fluxbox/startup

Openbox

User-specific:

~/.config/openbox/autostart.sh

System-wide (only executes if above file doesn't exist):

/etc/xdg/openbox/autostart.sh
Personal tools