Bug 247039

Summary: devel/glib20: backport GSETTINGS_BACKEND=keyfile support
Product: Ports & Packages Reporter: Jan Beich <jbeich>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me CC: gnome
Priority: --- Keywords: patch
Version: LatestFlags: bugzilla: maintainer-feedback? (gnome)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
v1
none
v2 none

Description Jan Beich freebsd_committer freebsd_triage 2020-06-07 05:10:27 UTC
Created attachment 215308 [details]
v1

Gtk3 under Wayland seems to rely on Gsettings more. However, devel/dconf depends on devel/dbus which maybe undesirable (bug 194460).

$ pkg install gtk3 gsettings-desktop-schemas

$ gsettings set org.gnome.desktop.interface text-scaling-factor 1.44
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

$ gsettings get org.gnome.desktop.interface text-scaling-factor
GLib-GIO-Message: 04:59:21.388: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
1.0

$ gtk3-demo
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2020-06-07 06:46:07 UTC
Created attachment 215310 [details]
v2

Fixes GLib-GIO-CRITICAL **: g_file_new_for_path: assertion 'path != NULL' failed
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-06-18 00:57:04 UTC
A commit references this bug:

Author: jbeich
Date: Thu Jun 18 00:55:58 UTC 2020
New revision: 539508
URL: https://svnweb.freebsd.org/changeset/ports/539508

Log:
  devel/glib20: backport GSETTINGS_BACKEND=keyfile support

  If devel/dconf or devel/gconf2 are installed then nothing changes.
  If neither are installed then settings are now stored in
  ~/.config/glib-2.0/settings/keyfile.

  PR:		247039
  Obtained from:	upstream

Changes:
  head/devel/glib20/Makefile
  head/devel/glib20/files/patch-keyfile