Re: libX11's libXcursor dlopen
Petre Rodan <[email protected]> Wed, 25 Mar 2026 06:42:44 +0200
| Newsgroups | gmane.os.netbsd.devel.x11 |
|---|---|
| Message-ID | <[email protected]> |
good morning Matthew,
On Wed, Mar 25, 2026 at 01:25:41PM +1100, matthew green wrote:
> can you see if this helps?
I tried your patch and it works great.
> looks like we had the same idea (also from the PR), though i missesd this bit:
>
> > -__XCURSORPATH__ = \
> > - ~/.local/share/icons, \
> > - ~/.icons, \
> > - /usr/share/icons, \
> > - /usr/share/pixmaps, \
> > - ${X11LIBDIR}/icons
> > +__XCURSORPATH__ = ${XCURSORPATH:S/:/, /g}
>
> thanks, i'll check that part out too.
this ends up in the manual page for Xcursor(3).
I had a look around and we are on the good path with this patch.
FreeBSD does not have the lib in base, but there is a port for it and it's XCURSORPATH covers the theme dir used by ports that contain extra icons (see below).
OpenBSD has the lib only in base and again, it's XCURSORPATH covers the theme dir where ports provide icons.
FreeBSD 14.4:
$ find / -type f -name 'libXcursor.so.*' 2>/dev/null
/usr/local/lib/libXcursor.so.1.0.2
$ pkg provides /usr/local/lib/libXcursor.so.1.0.2
Name : libXcursor-1.2.3
Comment : X client-side cursor loading library
Repo : FreeBSD
Filename: usr/local/lib/libXcursor.so.1.0.2
$ pkg info -l adwaita-icon-theme | grep 'icons/Adwaita/index.theme'
/usr/local/share/icons/Adwaita/index.theme
$ strings /usr/local/lib/libXcursor.so.1.0.2 | grep share
~/.local/share/icons:~/.icons:/usr/local/share/icons:/usr/local/share/pixmaps
OpenBSD 7.8:
$ find / -type f -name 'libXcursor.so.*' 2>/dev/null
/usr/X11R6/lib/libXcursor.so.5.1
$ pkg_locate libXcursor
xbase78:/usr/X11R6/lib/libXcursor.a
xbase78:/usr/X11R6/lib/libXcursor.la
xbase78:/usr/X11R6/lib/libXcursor.so.5.1
$ pkg_info -L adwaita-icon-theme | grep 'icons/Adwaita/index.theme'
/usr/local/share/icons/Adwaita/index.theme
$ strings /usr/X11R6/lib/libXcursor.so.5.1 | grep share
~/.icons:/usr/local/lib/X11/icons:/usr/local/share/icons:/usr/local/share/pixmaps:/usr/X11R6/share/icons:/usr/X11R6/share/pixmaps
now onto the mouse muxer problem.
best regards,
peter