refactor(launcher): use launch_profiles only\n\nRemove the temporary launch_scripts compatibility alias and keep the launcher

configuration surface focused on launch_profiles everywhere in the Svelte app and
docs.
This commit is contained in:
Scott Idem
2026-05-13 10:30:10 -04:00
parent b697126495
commit 49c6a2351e
4 changed files with 7 additions and 19 deletions

View File

@@ -208,8 +208,6 @@ Launch profiles are resolved in priority order by `get_launch_profile()` in
Launcher config UI (planned) or direct `localStorage` manipulation.
If neither is set, `script_template` is `null` and Electron uses its built-in hardcoded defaults.
Legacy `launch_scripts` keys remain accepted as compatibility aliases in the resolver so older
device records continue to work while the preferred schema is `launch_profiles`.
### Key Format
@@ -217,9 +215,9 @@ Keys are lowercase file extensions without the dot. A `"default"` key catches al
unrecognised extensions.
```json
// event_device.data_json.launch_scripts example
// event_device.data_json.launch_profiles example
{
"launch_scripts": {
"launch_profiles": {
"pptx": "tell application \"Microsoft PowerPoint\"\n activate\n open (POSIX file \"{{path}}\")\n delay 3\nend tell\ntell application \"System Events\"\n keystroke return using command down\nend tell",
"key": "tell application \"Keynote\"\n activate\n open (POSIX file \"{{path}}\")\n delay 1\n start (front document)\nend tell",
"pdf": "shell:open \"{{path}}\"",