canonical / gsettings.dart

Native Dart client library to access GSettings.
https://pub.dev/packages/gsettings
Mozilla Public License 2.0
17 stars 7 forks source link
dart

Pub Package codecov

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.