You are not logged in.
I tried to debug some failures on my TeX Live installation, and found out that it was due to the fact that
FONTCONFIG_PATH=/etc/fontsenvironment variable is set. While this is not necessarily wrong, it disturbs some other procedures, so I tried to find **where** this variable is set, but without success. I grepped through all the files in and below /etc, no hit.
Any suggestion/explanation where this variable is set?
Thanks
Offline
Are you sure it's a KDE thing? Does it not show up in an openbox session or the console?
Does it exist for other users (fresh account)?
The variable is frequently used by container systems (flatsnapdockercubes)
Offline
I logged into console and there the env var is not set. So it might be an sddm (the DM I use) or KDE/Plasma, or maybe Wayland?
Offline
Check an openbox (or sway, weston, …) session - ~/.config/plasma-workspace/env would be KDE specific.
Offline
I just tested:
- weston and openbox: the env var is NOT set
- plasma/x11 and plasma/wayland: the env var is set
Furthermore, I checked that ~/.config/plasma-workspace/env is empty for the respective user.
Offline
I'm on Plasma and it isn't set.
grep -r FONTCONFIG_PATH /etc/{profile*,environment} ~/.config ~/.local/shareLast edited by V1del (2024-02-16 21:55:33)
Offline
I grepped through all the files in and below /etc, no hit.
and this seems very plasma specific.
Do you use/autostart and container systems (flatsnapdockercubes)?
Offline
Ah didn't see that.... but no one said anything about grepping all the $HOME configs ![]()
Last edited by V1del (2024-02-16 15:01:45)
Offline
If it's any help I ran V1del's command: grep -r FONTCONFIG_PATH /etc/{profile*,environment} ~/.config ~./local/share
and I got this output:
grep: /home/friode/.config/google-chrome/Default/History: binary file matches
grep: /home/friode/.config/google-chrome/Default/Sync Data/LevelDB/001302.log: binary file matches
grep: ~./local/share: No such file or directoryIs the OP using google-chrome (the proprietary version0?
Offline
Ah whoops had a typo in there. It's somewhat unlikely those chrome files would be loaded for the general environment...
Offline
So I did the same grep command, and of course some items showed up in VSCode related dirs, Chrome related dirs etc, but those are all not loaded into a default environment, so that is not the source.
Very strange. Next I will try a clean user ...
Offline
I can confirm with a pristine user and a KDE/Plasma Wayland session, the envvar FONTCONFIG_PATH is being set
Offline
Do you use/autostart and container systems (flatsnapdockercubes)?
Offline
No flatpak or snaps on my system.
Docker is here, but mostly for home-made docker images and development
No dockercubes
Offline
did you run my (fixed) grep? I could also expect some service injecting into the user session or so. Also you don't happen do be actually running kde-unstable and thus plasma 6 ?
Offline
I did run
grep -r FONTCONFIG_PATH /etc/{profile*,environment} ~/.config ~/.local/shareand no, not on Plasma 6.
Offline
track_env() {
PID=$1
while ((PID != 1)); do
ps hp $PID >&2
printf " ---------------------------------------------------\n" >&2
tr '\0' '\n' < /proc/$PID/environ
printf " ===================================================\n"
PID=$(awk '/PPid/{print $2}' /proc/$PID/status)
done
}Running that w/
track_env $$ | grep FONTCONFIG_PATHshould™ at least tell us where it's starting…
Offline
Cool trick! I adjusted the printf === to go to &2, and got
60295 pts/3 SNs 0:00 /bin/bash
---------------------------------------------------
FONTCONFIG_PATH=/etc/fonts
===================================================
58483 ? RNl 0:03 /usr/bin/konsole
---------------------------------------------------
FONTCONFIG_PATH=/etc/fonts
===================================================
44289 ? SNsl 0:47 /usr/bin/plasmashell --no-respawn
---------------------------------------------------
===================================================
44029 ? Ss 0:00 /usr/lib/systemd/systemd --user
---------------------------------------------------
bash: /proc/44029/environ: Permission denied
===================================================I manually checked /proc/44029/environ, nothing there.
So it is the plasmashell that does it. I tried other terminal emulators, like xterm, and there the var is also set.
Offline
It's not in any file in plasma-workspace-5.27.10-2-x86_64.pkg.tar.zst …
grep -r FONTCONFIG_PATH /usr/lib/systemdOffline
(sorry for the late reply, I was travelling)
Nothing in /usr/lib/systemd (and ~/.local/share/systemd/) either.
A mystery.
Offline
grep -r FONTCONFIG_PATH /usr/libMight take a while. A LONG while.
Offline