Expand description
Handles autostart integration for both native installations and sandboxed Flatpak builds.
Under Flatpak, uses the XDG Background portal to request autostart
permission. On bare-metal installs, writes or removes a .desktop
file in ~/.config/autostart/. The portal request is asynchronous
and may be denied by the user.
Constantsยง
- APP_ID ๐
- AUTOSTART_
DESKTOP_ ๐ID - AUTOSTART_
REASON ๐
Functionsยง
- apply
- Configure or request autostart registration depending on container and integration style.
- autostart_
entry_ ๐paths - Retrieve possible system autostart shortcut path list (sandboxed and unsandboxed).
- default_
autostart_ ๐entry_ path - Retrieve default system autostart configuration shortcut folder path.
- escape_
desktop_ ๐exec_ arg - Escape an executable path for the
Exec=field of a desktop entry. - flatpak_
host_ ๐config_ dir_ from - Map a sandboxed
~/.var/app/<app-id>/configpath back to the host~/.configpath. - install_
desktop_ ๐entry - Install autostart desktop shortcut entry in standard non-flatpak configurations.
- is_
flatpak_ ๐sandbox - Check if running inside Flatpak sandbox environment.
- remove_
desktop_ ๐entry - Remove autostart desktop shortcut entry if one exists.
- request_
background_ ๐portal - Request autostart state change through the XDG Background portal.