191.26. xsettingsd-1.0.2
XSETTINGS daemon — serves the GTK theme, fonts and cursor to X11 programs under Xwayland
1.0.2-1 · BSD-3-Clause · 0.1 SBU · 130.4 KiB, 5 files · 42_graphics, 188 of 189 · ports/core/x11/xsettingsd
Homepage: https://codeberg.org/derat/xsettingsd
xsettingsd serves XSETTINGS, the X11 protocol through which a GTK program learns the theme, icon theme, fonts, font rendering and cursor. A GTK program running under Xwayland cannot read them from the Wayland session, so without it every X11 GTK window draws GTK’s defaults. Plasma’s kde-gtk-config starts it inside the session and writes ~/.config/xsettingsd/xsettingsd.conf from the settings it applies; nothing else on KDOS runs it.
Depends on: cmake, ninja, libX11.
Required by (1): kde-gtk-config.
Sources: xsettingsd-1.0.2.tar.gz (21.9 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install xsettingsd'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm -rf "$PKG/usr/lib/systemd"
rmdir "$PKG/usr/lib"
Programs: dump_xsettings, xsettingsd.
Directories: /usr/share/licenses/xsettingsd.
The install puts a systemd user unit, xsettingsd.service, under /usr/lib/systemd/user, with no switch to skip it. build.sh removes the directory, and then /usr/lib, which nothing else in the package uses, so the package does not carry an empty directory (see No systemd init, units or service manager).
The tests need googletest and are built only with BUILD_TESTING on, so -D BUILD_TESTING=OFF keeps the configure from looking at whatever googletest the build root holds. dump_xsettings, which prints what the running X server’s settings owner serves, is installed beside the daemon.