Elyra
Elyra The coding agent e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Elyra SQL Server MySQL-compatible SQL server in Rust Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine
Release notes
Changelog
Elyra
Autostart (launch at login)

Autostart (launch at login)

Feature-gated behind autostart. Registers the app to start when the user logs in — LaunchAgents on macOS, the registry Run key on Windows, and a .desktop autostart entry on Linux (via the auto-launch crate).

elyra = { version = "0.3", features = ["autostart"] }

Frontend API

import { autostart } from "@elyra/runtime";

if (!(await autostart.isEnabled())) {
  await autostart.enable();
}
await autostart.disable();

Rust API

use elyra::autostart;

autostart::enable(&app_name)?;      // app_name is usually your About name
let on = autostart::is_enabled(&app_name)?;

The entry points at the current executable and is keyed by the About name.

Caveats

  • On macOS, reliable behavior generally requires a bundled .app (a bare cargo run binary may not persist correctly across sessions).
  • Enabling/disabling touches OS state (registry / LaunchAgents / autostart dir); a failure rejects the promise.

Related