fluttercommunity / fluttercommunity/plus_plugins

[Request]: Use org.freedesktop.portal.NetworkMonitor on Linux

Open
#1,241 6 comments 2 reactions 0 assignees View on GitHub
enhancement triage
Dominant language
Dart
Stars
1.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

### Plugin

connectivity_plus

### Use case

I want to distribute my app in a Flatpak sandbox.

The plugin is not allowed to connect to the D-Bus system bus:

```
flutter: SocketException: Connection failed (OS Error: No such file or directory, errno = 2), address = /var/run/dbus/system_bus_socket, port = 0
```

### Proposal

Flatpak portals are a network daemon agnostic way to fetch network information. It works both inside and outside sandboxes.

https://docs.flatpak.org/en/latest/portal-api-reference.html#gdbus-org.freedesktop.portal.NetworkMonitor

It shjould be used instead of trying to talk directly to NetworkManager.

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.