Skip to main content

xdg_desktop_entry

Function xdg_desktop_entry 

Source
pub fn xdg_desktop_entry(exe: &Path, channel: &str) -> String
Expand description

Linux XDG autostart desktop entry.

X-GNOME-Autostart-enabled=true is included because some desktops treat a missing value as disabled. Terminal=false keeps it from spawning a console window on desktops that honor it.

TryExec makes the entry inert once the target is gone (app removed, AppImage deleted): the session skips it instead of failing at every login (SPEC_START_WITH_OS_2026_09_25.md §3.1). X-GNOME-Autostart-Delay gives the tray host time to come up first (§3.4). X-AgentMux-Channel records which build owns the entry (§3.5).