Bug 247039 - devel/glib20: backport GSETTINGS_BACKEND=keyfile support
Summary: devel/glib20: backport GSETTINGS_BACKEND=keyfile support
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jan Beich
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-06-07 05:10 UTC by Jan Beich
Modified: 2020-06-23 19:13 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
v1 (21.45 KB, patch)
2020-06-07 05:10 UTC, Jan Beich
no flags Details | Diff
v2 (24.36 KB, patch)
2020-06-07 06:46 UTC, Jan Beich
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 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 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 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