gsettings 0.2.1
gsettings: ^0.2.1 copied to clipboard

GSettings client

Pub Package codecov

Provides a client to use GSettings - a settings database used for storing user preferences on Linux.

import 'package:dbus/dbus.dart';
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 as DBusString).value;
  print('Current font set to: $font');
  await settings.close();
}

Contributing to gsettings.dart #

We welcome contributions! See the contribution guide for more details.