Files
Gliczy 72a2c77772 makeAutostartItem: only use sed on Exec key
Fix cases when using `makeStartupItem` and it's `prependExtraArgs` or
`appendExtraArgs` option with a desktop file having a `TryExec` key.

The `TryExec` key must either be an absolute path to the binary or the
binary name (if present in $PATH). When using either of the two options
above, the `TryExec` key will be modified to have the flags as it's
content, which is invalid and will break the desktop file.

The change to the sed command makes it so only lines starting with
`Exec` are changed, ignoring `TryExec` and preventing the issue from
happening.

Link to the FDO specification:
https://specifications.freedesktop.org/desktop-entry/latest/recognized-keys.html
2026-06-14 04:11:53 +02:00
..