Baseflow / Baseflow/flutter-geolocator

[Feature Request]: linux: switch to xdg-desktop-portal

Open
#1,374 5 comments 0 reactions 1 assignee Claimed by @TimHoogstrate View on GitHub
P3 platform: linux type: enhancement
Dominant language
Dart
Stars
1.3k
Forks
803
Avg merge
8h 16m
Merged PRs (30d)
1

Description

### Is there already an issue requesting this feature?

- [X] I have searched the [existing issues](https://github.com/baseflow/flutter-geolocator/issues).

### Please select affected platform(s)

- [ ] Android
- [ ] iOS
- [X] Linux
- [ ] macOS
- [ ] Web
- [ ] Windows

### Use case

Right now the Linux plugin uses either the GNOME-specific API, either Geoclue directly. However these interfaces shouldn't be used inside of a sandbox like Flatpak.

Instead, [org.freedesktop.portal.Location](https://github.com/flatpak/xdg-desktop-portal/blob/main/data/org.freedesktop.portal.Location.xml) should be used. It works both outside and inside sandboxes.

### Proposal

Use org.freedesktop.portal.Location instead of other APIs.

### Specific requirements or considerations

_No response_

### Additional information or context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.