Harden session launch command recovery

This commit is contained in:
cheerfulScumbag 2026-03-23 19:09:13 +00:00
parent 818f80c068
commit e2b63a06d7
3 changed files with 380 additions and 83 deletions

View file

@ -82,10 +82,14 @@ idleinhibit_ignore_visible=0
# Disabled by default to preserve Mango's current behavior.
# Minimized restore is currently unsupported.
# Restore expects target outputs to already exist before clients map.
# Mango only restores from a trusted session file owned by the current user
# and not writable by group or others.
session_restore=0
# Relaunch mapping used when Mango cannot infer a launch command from a client.
# Optional relaunch override used when Mango cannot recover a suitable launcher.
# Format: session_launch=app_id|command
# or: session_launch=app_id|title|command
# Mango prefers exact Mango-owned spawn commands, then normalized desktop/Flatpak
# launchers, then raw process argv before consulting session_launch.
# session_launch=foot|foot
# session_launch=foot|gamma|foot -a foot -T gamma -e sh -lc "sleep 600"
# session_launch=org.kde.dolphin|dolphin .