Autostarting: Difference between revisions

From ArchWiki
m (package exists in repo)
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
[[ru:Autostarting]]
[[ru:Autostarting]]
[[zh-hans:Autostarting]]
[[zh-hans:Autostarting]]
{{Related articles start}}
{{Related|Daemons}}
{{Related articles end}}
This article links to various methods to launch scripts or applications automatically when some particular event is taking place.
This article links to various methods to launch scripts or applications automatically when some particular event is taking place.


== On bootup / shutdown ==
== On bootup / shutdown ==


Use [[systemd]] services.
[[Enable]] the relevant [[systemd]] services. If an application does not provide a systemd service, [[Systemd#Writing unit files|write]] your own.


== On user login / logout ==
== On user login / logout ==


Use [[systemd/User]] services.
[[Enable]] the relevant [[user unit]].


== On device plug in / unplug ==
== On device plug in / unplug ==
Line 72: Line 68:
If the [[window manager]] has an article, see its ''Autostart'' section.
If the [[window manager]] has an article, see its ''Autostart'' section.


* [[awesome#Autostart]]
* [[dwm#Autostart]]
* [[i3#Autostart]]
* [[IceWM#Autostart]]
* [[Fluxbox#Autostart]]
* [[Fluxbox#Autostart]]
* [[Openbox#Autostart]]
* [[Openbox#Autostart]]
* [[Awesome#Autostart]]
* [[Sway#Autostart]]
* [[i3#Autostart]]
* [[IceWM#Autostart]]

Latest revision as of 05:33, 28 June 2023

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

On bootup / shutdown

Enable the relevant systemd services. If an application does not provide a systemd service, write your own.

On user login / logout

Enable the relevant user unit.

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 environments implement XDG Autostart.

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

On window manager startup

Many window managers implement XDG Autostart.

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