gsettings
0.2.9, released 9 weeks ago by canonical.com
Client to access GSettings database for storing user preferences on Linux.
What it does
Provides a Dart client to access GSettings, the settings database used for storing user preferences on Linux. Allows reading, writing, and listening to changes on GSettings keys via D-Bus.
AI-written summary of version 0.2.9, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are developing a Flutter or Dart desktop application targeting Linux.
- You need to integrate with native GNOME or desktop user preferences using GSettings.
Skip it when
- You need cross-platform storage (Android, iOS, Windows, macOS).
- You are looking for a general-purpose key-value store independent of Linux desktop environments.
Strengths
- Native integration with Linux GSettings and D-Bus.
- Supports memory and keyfile backends and schema directories.
Weaknesses
- Limited exclusively to the Linux platform.
- Requires proper D-Bus and GSettings schema setup on the host system.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires Linux environment with D-Bus and GSettings support.
import 'package:gsettings/gsettings.dart';
void main() async {
var settings = GSettings('org.gnome.desktop.interface');
var value = await settings.get('font-name');
var font = value.asString();
print('Current font set to: $font');
await settings.close();
}Alternatives
Packages that do the same job and could replace gsettings.
- fbdb
Dart client for Firebird SQL using FFI, providing async API and low‑level bindings.
74Compare - drift_postgres
Postgres implementation and APIs for the drift database package.
69Compare - pref
Create Preference Screens easily with advanced features and sub-pages.
75Compare - minio
Unofficial MinIO and S3-compatible object storage client SDK for Dart and Flutter.
61Compare
Works with
Packages commonly used together with gsettings: ones it builds on, ones built on it, and its own family.
- xdg_directoriesgsettings depends on itA Dart package for reading XDG directory configuration information on Linux.
- dbusgsettings depends on itNative Dart D-Bus client for Linux and Windows.
- nmSame familyClient for interacting with Linux NetworkManager via D-Bus
- geoclueSame familyDart client for the GeoClue D-Bus geolocation service on Linux.
- upowerSame familyProvides a client to connect to UPower for Linux power management.
- bluezSame familyA Dart client for interacting with the Linux BlueZ Bluetooth stack via D-Bus.
- desktop_notificationsSame familySend Linux desktop notifications via DBus.
- xdg_desktop_portalSame familyA native Dart implementation of portals for Linux desktop applications.