Shell 19: fluxer-platform autostart #811

Closed
opened 2026-11-17 23:02:56 +00:00 by charles · 0 comments
Owner

Task 19 of the Desktop shell plan (docs/superpowers/plans/2026-11-17-desktop-shell.md, section "### Task 19:"). The plan on the shell branch is the source of truth; this copy is for reading.

Closes: — Depends on: 16, 18 (Launch and the Registry trait)

Files:

  • Create: crates/fluxer-platform/src/autostart/{mod.rs,linux.rs,windows.rs} · Modify: lib.rs, README · Test: crates/fluxer-platform/tests/autostart.rs

Interfaces:

  • Produces: Autostart trait { state() -> AutostartState, enable(&Launch), disable() }, system_autostart(), FakeAutostart. Linux: $XDG_CONFIG_HOME/autostart/flaxative.desktop (D/Autostart.ts:362-381), state as :472-483, Stale when the command is gone. Windows: Run value Forked.Flaxative = "<stub or exe>" --autostart (D/Autostart.ts:117-143), StartupApproved\Run read (first byte 3 → DisabledBySystem), never written.

  • Step 1: failing tests: enable_writes_file_and_state_is_on, hidden_or_missing_command_is_off_or_stale, disable_removes, exec_uses_appimage_path, development_build_unavailable, Windows through the memory registry: run_value_written_with_stub_path, startup_approved_disabled_reported, disable_deletes_only_our_value.

  • Step 2–5: FAIL → implement → PASS → commit feat(platform): autostart.

Task 19 of the Desktop shell plan (`docs/superpowers/plans/2026-11-17-desktop-shell.md`, section "### Task 19:"). The plan on the `shell` branch is the source of truth; this copy is for reading. **Closes:** — **Depends on:** 16, 18 (`Launch` and the `Registry` trait) **Files:** - Create: `crates/fluxer-platform/src/autostart/{mod.rs,linux.rs,windows.rs}` · Modify: `lib.rs`, README · Test: `crates/fluxer-platform/tests/autostart.rs` **Interfaces:** - Produces: `Autostart` trait `{ state() -> AutostartState, enable(&Launch), disable() }`, `system_autostart()`, `FakeAutostart`. Linux: `$XDG_CONFIG_HOME/autostart/flaxative.desktop` (`D/Autostart.ts:362-381`), state as `:472-483`, `Stale` when the command is gone. Windows: `Run` value `Forked.Flaxative` = `"<stub or exe>" --autostart` (`D/Autostart.ts:117-143`), `StartupApproved\Run` read (first byte 3 → `DisabledBySystem`), never written. - [ ] **Step 1: failing tests**: `enable_writes_file_and_state_is_on`, `hidden_or_missing_command_is_off_or_stale`, `disable_removes`, `exec_uses_appimage_path`, `development_build_unavailable`, Windows through the memory registry: `run_value_written_with_stub_path`, `startup_approved_disabled_reported`, `disable_deletes_only_our_value`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(platform): autostart`.
charles added this to the Desktop shell milestone 2026-11-17 23:02:56 +00:00
charles referenced this issue from a commit 2026-11-18 10:04:54 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#811
No description provided.