XDG Autostart: Difference between revisions

From ArchWiki
m (add ru link)
(→‎Prerequisites: remove deleted package https://lists.archlinux.org/archives/list/aur-requests@lists.archlinux.org/thread/YBWYYSXPIUHNCKRFAYVO7WEJL4LTF2K2/#VTOIM5OUWFIDIZA7HFSVQUGA7QXYWTWE)
 
(5 intermediate revisions by 4 users not shown)
Line 5: Line 5:
[[pt:XDG Autostart]]
[[pt:XDG Autostart]]
[[ru:XDG Autostart]]
[[ru:XDG Autostart]]
[[it:XDG Autostart]]
[[zh-hans:XDG Autostart]]
[[zh-hans:XDG Autostart]]
The [https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html 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]].
The [https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html 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]].
Line 15: Line 16:
* {{AUR|dapper}}
* {{AUR|dapper}}
* {{AUR|fbautostart}}
* {{AUR|fbautostart}}
* {{AUR|sandsmark-xdg-autostart-launcher-git}}
* [https://systemd.io/DESKTOP_ENVIRONMENTS/#xdg-autostart-integration systemd-xdg-autostart-generator]
* [https://systemd.io/DESKTOP_ENVIRONMENTS/#xdg-autostart-integration systemd-xdg-autostart-generator]


Line 23: Line 23:


* user-specific: {{ic|$XDG_CONFIG_HOME/autostart}} ({{ic|~/.config/autostart}} by default)
* user-specific: {{ic|$XDG_CONFIG_HOME/autostart}} ({{ic|~/.config/autostart}} by default)
* system-wide: {{ic|$XDG_CONFIG_DIRS/autostart}} ({{ic|/etc/xdg/autostart}} by default)[https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#referencing]
* system-wide: {{ic|$XDG_CONFIG_DIRS/autostart}} ({{ic|/etc/xdg/autostart}} by default) [https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html#referencing]


System-wide [[desktop entries]] can be overridden by user-specific entries with the same filename.
System-wide [[desktop entries]] can be overridden by user-specific entries with the same filename.


{{Tip|To disable a system-wide entry, create an overriding entry containing {{ic|1=Hidden=true}}.}}
{{Tip|
* To disable a system-wide entry, create an overriding entry containing {{ic|1=Hidden=true}}.
* To list autostart programs, [[install]] {{Pkg|dex}} and run {{ic|dex -ad}}.
}}


For more details, read [https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html the specification].
For more details, read [https://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html the specification].

Latest revision as of 19:45, 16 April 2024

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/autostart by default)
  • system-wide: $XDG_CONFIG_DIRS/autostart (/etc/xdg/autostart by default) [1]

System-wide desktop entries can be overridden by user-specific entries with the same filename.

Tip:
  • 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.