Bug 253742

Summary: x11-toolkits/gtk30: requires runtime gsettings-desktop-schemas on Wayland
Product: Ports & Packages Reporter: Evgeniy Khramtsov <evgeniy>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me CC: desktop, evgeniy
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
proposed_diff none

Description Evgeniy Khramtsov 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 Evgeniy Khramtsov 2021-03-12 18:49:56 UTC
Maintainer timeout.
Comment 2 commit-hook freebsd_committer 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