Skip to content

Conversation

@tyreseluo
Copy link

@tyreseluo tyreseluo commented Nov 28, 2025

PR content

Add Linux support using zbus and polkit for authentication crate and clear the database errors under Linux.

The basic Linux authentication pop-up has been implemented, but some details still need to be confirmed.

image

Still in development, with an update coming this week.

PR Changes

  • Replace polkit and gio dependencies with zbus and zbus_polkit
  • Implement D-Bus-based authentication for Linux using polkit
  • Add complete Linux implementation module with proper error handling
  • Update example to handle Linux async authentication pattern
  • Add comprehensive Linux usage documentation to README
  • Enable Linux target in sys.rs module

- Replace polkit and gio dependencies with zbus and zbus_polkit
- Implement D-Bus-based authentication for Linux using polkit
- Add complete Linux implementation module with proper error handling
- Add Tyrese Luo as co-author to authentication crate
- Update example to handle Linux async authentication pattern
- Add comprehensive Linux usage documentation to README
- Enable Linux target in sys.rs module
@tyreseluo tyreseluo marked this pull request as ready for review November 28, 2025 13:28
…tweaks

  - note Linux action ID requirement in example and expose PolicyBuilder::action_id on Linux
  - cache system bus and polkit authority, name auth thread, refine authorization result handling
  - make authentication Error clonable for reuse in cached results
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