Bug 253742 - x11-toolkits/gtk30: requires runtime gsettings-desktop-schemas on Wayland
Summary: x11-toolkits/gtk30: requires runtime gsettings-desktop-schemas on Wayland
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: 2021-02-21 13:22 UTC by Name
Modified: 2021-03-16 16:39 UTC (History)
2 users (show)

See Also:


Attachments
proposed_diff (579 bytes, patch)
2021-02-21 13:22 UTC, Name
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Name 2021-02-21 13:22:07 UTC
Created attachment 222699 [details]
proposed_diff

On firefox, hovering over links will result in stderr spam about hand2 cursor not being found. jbeich@ on FreeBSDDesktop Gitter said that Gtk3 under Wayland uses gsettings instead of X resources (xrdb, ~/.Xresources, ~/.Xdefaults), so the missing dependency isn't specific to firefox.
Comment 1 Name 2021-03-12 18:49:56 UTC
Maintainer timeout.
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-03-16 16:35:41 UTC
A commit references this bug:

Author: jbeich
Date: Tue Mar 16 16:35:12 UTC 2021
New revision: 568579
URL: https://svnweb.freebsd.org/changeset/ports/568579

Log:
  x11-toolkits/gtk30: depend on gsettings-desktop-schemas

  Gtk on Wayland uses gsettings to get cursor theme but without schemes
  installed it falls back to "default" theme which doesn't exist.

    $ gsettings get org.gnome.desktop.interface cursor-theme
    No such schema ?org.gnome.desktop.interface?

    $ MOZ_ENABLE_WAYLAND=1 firefox
    [...]
    Gdk-Message: 15:15:20.123: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:15:20.300: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:15:20.536: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:15:52.250: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:15:52.350: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:15:52.834: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:15:52.933: Unable to load hand2 from the cursor theme

    $ emacs -Q # --with-pgtk
    Gdk-Message: 15:16:34.736: Unable to load sb_v_double_arrow from the cursor theme
    Gdk-Message: 15:16:34.736: Unable to load sb_h_double_arrow from the cursor theme
    Gdk-Message: 15:16:35.272: Unable to load hand2 from the cursor theme
    Gdk-Message: 15:16:35.272: Unable to load sb_h_double_arrow from the cursor theme
    Gdk-Message: 15:16:35.272: Unable to load sb_v_double_arrow from the cursor theme

    $ truss emacs -Q 2>&1 | fgrep /cursor
    [...]
    open("/home/foo/.icons/default/cursors/",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,00) ERR#2 'No such file or directory'
    open("/usr/share/icons/default/cursors/",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,00) ERR#2 'No such file or directory'
    open("/usr/share/pixmaps/default/cursors/",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,00) ERR#2 'No such file or directory'
    open("/home/foo/.cursors/default/cursors/",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,00) ERR#2 'No such file or directory'
    open("/usr/share/cursors/xorg-x11/default/cursors/",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,00) ERR#2 'No such file or directory'
    open("/usr/local/share/icons/default/cursors/",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,00) ERR#2 'No such file or directory'
    [...]

  PR:		253742
  Submitted by:	Evgeniy Khramtsov <2khramtsov@gmail.com>

Changes:
  head/x11-toolkits/gtk30/Makefile