Skip to content

feat: add support for FreeBSD - #38

Merged
zzzgydi merged 1 commit into
mainfrom
freebsd-support
Aug 20, 2026
Merged

zzzgydi merged 1 commit into
mainfrom
freebsd-support

Conversation

@zzzgydi

@zzzgydi zzzgydi commented Aug 20, 2026

Copy link
Copy Markdown
Owner

Supersedes #34 (rebased onto the latest main; credit to the original author @RockLakeGrass via Co-authored-by).

Add support for FreeBSD by reusing the Linux implementation (XDG Autostart / systemd modes) through conditional compilation flags. No functional code is changed.

Compared to #34, this also covers the two cfg-gated sites introduced by #35:

  • the linux_launch_mode field in AutoLaunchBuilder
  • the body of set_linux_launch_mode

Verified locally with cargo check --all-targets on:

  • aarch64-apple-darwin
  • x86_64-unknown-linux-gnu
  • x86_64-pc-windows-msvc
  • x86_64-unknown-freebsd

Note: the Systemd launch mode has no effect on FreeBSD (no systemd); the default XdgAutostart mode works with FreeBSD desktop environments.

Co-authored-by: Hanming Wang <m17816713710@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant