site  contact  subhomenews

xrdb fixed in container

November 30, 2024 — BarryK

Alfons reported that pClock (in the Personal menu category) does not work in the daedalus container.

The reason is that /usr/bin/pclock script runs "xrdb -query", which returns nothing, and pclock aborts with a syntax error. This is what xrdb is supposed to return:

img1

...pclock wants that "Xft.dpi" parameter.

When the daedalus container is running, if you look in /mnt/wkg/containers/daedalus/container, you will find these:

.control/ec-run
.control/daedalus
usr/bin/desk-delayedrun

When the container is first started, those three scripts are executed, in that order. The 'daedalus' script has this line:

if [ -f ${HOME}/.Xresources ];then xrdb -merge -nocpp ${HOME}/.Xresources; fi

...that is supposed to load /root/.Xresources, but it doesn't. The Xephyr server should be running at that point in time, so I don't know why xrdb isn't working. What I did as a quick fix is repeat running xrdb at the end of 'desk-delayedrun'; then xrdb works, and pclock works.

Bit of a hack fix, but anyway, it works. Github commit:

https://github.com/bkauler/woofq/commit/0077417e01e33d61483ce3ff6f71232d22717bd1    

Tags: easy