Difference between revisions of "Autostarting"

From ArchWiki
Jump to: navigation, search
(Desktop environments: update anchor links)
(add desktop environment and window manager startup to flow chart, rm now obsolete Graphical section)
Line 18: Line 18:
 
** [[xinitrc]] if you are starting [[Xorg]] manually with [[xinit]]
 
** [[xinitrc]] if you are starting [[Xorg]] manually with [[xinit]]
 
** [[xprofile]] if you are using a [[display manager]]
 
** [[xprofile]] if you are using a [[display manager]]
** [[XDG Autostart]] i.e. place [[desktop entries]] in specific directories
+
* on [[desktop environment]] startup, if it has an ArchWiki article, see its ''Autostart'' section. Most [[desktop environment]]s implement [[XDG Autostart]].
 +
* on [[window manager]] startup, if it has an ArchWiki article, see its ''Autostart'' section.
  
 
== Shells ==
 
== Shells ==
Line 29: Line 30:
  
 
Upon login, all Bourne-compatible shells source {{ic|/etc/profile}}, which in turn sources any readable {{ic|*.sh}} files in {{ic|/etc/profile.d/}}: these scripts do not require an interpreter directive, nor do they need to be executable. They are used to set up an environment and define application-specific settings.
 
Upon login, all Bourne-compatible shells source {{ic|/etc/profile}}, which in turn sources any readable {{ic|*.sh}} files in {{ic|/etc/profile.d/}}: these scripts do not require an interpreter directive, nor do they need to be executable. They are used to set up an environment and define application-specific settings.
 
== Graphical ==
 
 
You can autostart programs automatically when you login into your [[Window manager]] or [[Desktop environment]].
 
 
=== Desktop environments ===
 
 
* [[GNOME#Autostart]]
 
* [[KDE#Autostart]]
 
* [[Xfce#Autostart]]
 
* [[LXDE#Autostart]]
 
* [[LXQt#Autostart]]
 
 
=== Window managers ===
 
 
* [[Fluxbox#Autostart programs]]
 
* [[Openbox#autostart]]
 
* [[Awesome#Autorun programs]]
 

Revision as of 12:15, 14 April 2018

To automatically run programs:

Shells

To autostart programs in console or upon login, you can use shell startup files/directories. Read the documentation for your shell, or its ArchWiki article, e.g. Bash#Configuration files or Zsh#Startup/Shutdown files.

See also Wikipedia:Unix shell#Configuration files.

/etc/profile

Upon login, all Bourne-compatible shells source /etc/profile, which in turn sources any readable *.sh files in /etc/profile.d/: these scripts do not require an interpreter directive, nor do they need to be executable. They are used to set up an environment and define application-specific settings.