ArchWiki / XDG Autostart
ArchWiki / XDG Autostart
es:XDG Autostart hu:XDG Autostart ja:XDG Autostart pt:XDG Autostart ru:XDG Autostart it:XDG Autostart zh-hans:XDG Autostart The XDG Autostart specification defines a method for autostarting ordinary desktop entries on desktop environment startup and removable medium mounting, by placing them in specific directories.
Prerequisites
You need to use either a desktop environment that supports it, or a dedicated implementation, like:
Directories
The Autostart directories in order of preference are:
user-specific:
$XDG_CONFIG_HOME/autostart(~/.config/autostartby default)system-wide:
$XDG_CONFIG_DIRS/autostart(/etc/xdg/autostartby default) https://specifications.freedesktop.org/basedir-spec/latest/#referencing
System-wide desktop entries can be overridden by user-specific entries with the same filename.
* To disable a system-wide entry, create an overriding entry containing Hidden=true.
* To list autostart programs, install dex and run dex -ad.
For more details, read the specification.