Viewing version 0.2.9. Open the latest package page.
gsettings
0.2.9Provides a client to access GSettings - a settings database used for storing user preferences on Linux.
Readme
Provides a client to use GSettings - a settings database used for storing user preferences on Linux.
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();
}
Contributing to gsettings.dart
We welcome contributions! See the contribution guide for more details.
Changelog
Changelog
0.2.9
- chore: bump dependency dbus to 0.8.0
0.2.8
- feat: support to specify schema directories
- chore: bump dependency xdg_directories to ^1.0.0
0.2.7
- Look for schemas in XDG_DATA_HOME.
0.2.6
- Support memory and keyfile backends.
- Use broadcast streams for keys changed.
- Support multiple directories in GSETTINGS_SCHEMA_DIR.
- Use dbus 0.7.8.
- Use lints 2.0.
- Test improvements.
0.2.5
- Update to dbus 0.7
0.2.4
- Only list as supporting Linux.
0.2.3
- Fix reading ranged values.
0.2.2
- Fix reading enums and flags.
0.2.1
- Support relocatable schemas.
0.2.0
- Initial release, replacing the existing ffi bindings.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'gsettings:0.2.9'pubspec.yaml
name: gsettings
version: 0.2.9
description:
Provides a client to access GSettings - a settings database used for storing user preferences on Linux.
homepage: https://github.com/canonical/gsettings.dart
environment:
sdk: '>=2.12.0 <4.0.0'
platforms:
linux:
dependencies:
dbus: ^0.8.0
xdg_directories: ^1.0.0
dev_dependencies:
lints: ^2.0.0
test: ^1.16.8
test_cov: ^1.0.1
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.1 | Cached · Upstream SHA-256 matched | Download | 7c2acc5a…e2e50f |
| 0.1.0 | Cached · Upstream SHA-256 matched | Download | 42cd403d…534e10 |
| 0.1.1 | Cached · Upstream SHA-256 matched | Download | 57bc9ead…06c566 |
| 0.1.2 | Cached · Upstream SHA-256 matched | Download | 28d5c5ba…ffd7bb |
| 0.1.2+1 | Cached · Upstream SHA-256 matched | Download | 8df9ebb1…d0402d |
| 0.2.0 | Cached · Upstream SHA-256 matched | Download | 3edd7661…04165d |
| 0.2.1 | Cached · Upstream SHA-256 matched | Download | af4fd522…79d1d0 |
| 0.2.2 | Cached · Upstream SHA-256 matched | Download | 4c5a42e3…1db17d |
| 0.2.3 | Cached · Upstream SHA-256 matched | Download | 1ef45b75…7b811a |
| 0.2.4 | Cached · Upstream SHA-256 matched | Download | 6268119d…c6344c |
| 0.2.5 | Cached · Upstream SHA-256 matched | Download | 23f153e5…ba7bb5 |
| 0.2.6 | Cached · Upstream SHA-256 matched | Download | 3247279b…d04d68 |
| 0.2.7 | Cached · Upstream SHA-256 matched | Download | fe90d719…ae8b0d |
| 0.2.8 | Cached · Upstream SHA-256 matched | Download | 1b0ce661…58249c |
| 0.2.9 | Cached · Upstream SHA-256 matched | Download | 5e3e299b…9aaefc |
Dependencies
dbus "^0.8.0"
xdg_directories "^1.0.0"