Difference between revisions of "Autostarting"

From ArchWiki
Jump to: navigation, search
(On filesystem events: wikilink Incron)
(add On device plug in / unplug: section telling you to use udev rules)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Boot process]]
+
[[Category:System administration]]
 
[[es:Autostarting]]
 
[[es:Autostarting]]
 
[[ja:自動起動]]
 
[[ja:自動起動]]
Line 17: Line 17:
  
 
Use [[systemd/User]] services.
 
Use [[systemd/User]] services.
 +
 +
== On device plug in / unplug ==
 +
 +
Use [[udev]] rules.
  
 
== On time events ==
 
== On time events ==
Line 34: Line 38:
 
Use an [[Wikipedia:inotify|inotify]] event watcher:
 
Use an [[Wikipedia:inotify|inotify]] event watcher:
  
* {{Pkg|inotify-tools}} (see [https://techarena51.com/index.php/inotify-tools-example/ some examples])
+
* {{Pkg|inotify-tools}}, see {{man|1|inotifywait}}
 
* [[Incron]]
 
* [[Incron]]
 
* {{AUR|fswatch}}
 
* {{AUR|fswatch}}
Line 49: Line 53:
 
== On desktop environment startup ==
 
== On desktop environment startup ==
  
If the [[desktop environment]] has an ArchWiki article, see its ''Autostart'' section.
+
Most [[desktop environment]] implement [[XDG Autostart]].
 +
 
 +
If the desktop environments has an article, see its ''Autostart'' section.
  
 
* [[GNOME#Autostart]]
 
* [[GNOME#Autostart]]
Line 56: Line 62:
 
* [[LXDE#Autostart]]
 
* [[LXDE#Autostart]]
 
* [[LXQt#Autostart]]
 
* [[LXQt#Autostart]]
 
Most desktop environments implement [[XDG Autostart]].
 
  
 
== On window manager startup ==
 
== On window manager startup ==
  
If the [[window manager]] has an ArchWiki article, see its ''Autostart'' section.
+
If the [[window manager]] has an article, see its ''Autostart'' section.
  
 
* [[Fluxbox#Autostart]]
 
* [[Fluxbox#Autostart]]
 
* [[Openbox#Autostart]]
 
* [[Openbox#Autostart]]
 
* [[Awesome#Autostart]]
 
* [[Awesome#Autostart]]

Latest revision as of 19:32, 4 September 2018

This article links to various methods to launch scripts or applications automatically when some particular event is taking place.

On bootup / shutdown

Use systemd services.

On user login / logout

Use systemd/User services.

On device plug in / unplug

Use udev rules.

On time events

Periodically at certain times, dates or intervals:

Once at a date and time:

On filesystem events

Use an inotify event watcher:

On shell login / logout

See Command-line shell#Configuration files.

On Xorg startup

On desktop environment startup

Most desktop environment implement XDG Autostart.

If the desktop environments has an article, see its Autostart section.

On window manager startup

If the window manager has an article, see its Autostart section.