Skip to content

Never wait on the main thread for D-Bus, and use DBus's generated GeoClue2 client - #23

Merged
colemancda merged 20 commits into
masterfrom
feature/async-queries
Dec 3, 2026
Merged

colemancda merged 20 commits into
masterfrom
feature/async-queries

Conversation

@colemancda

Copy link
Copy Markdown
Member

Follows PureSwift/AppRuntime#40, which this builds against: merge that first.

  • LinuxDBus: callAndWait, propertyAndWait and their semaphore are gone. Bus.perform runs an async body on the bus's connection, for PureSwift/DBus's generated service clients, and posts its value or error to the main loop.
  • LinuxNFC: availability is answered through NFCAvailabilityCallback once neard has.
  • LinuxLocation:
    • isLocationServicesEnabled(_:) is answered once GeoClue has.
    • The answer is kept for Permissions, which says notDetermined until there is one.
    • GeoClue is reached through DBus 0.3.2's generated GeoClue2 client.
    • GeoClueBus names each call instead of taking strings, and the fake plays the same calls.
  • LinuxDevice: proximity monitoring is on at once, and turns itself off when iio-sensor-proxy says there's no sensor.
  • Package: DBus from: "0.3.2", and its GeoClue2 product for LinuxLocation.

@colemancda
colemancda merged commit a2dc350 into master Dec 3, 2026
0 of 2 checks passed
@colemancda
colemancda deleted the feature/async-queries branch December 3, 2026 08:45
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