gsettings: “error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory”
Whenever I run a command that interacts with gsettings (gsettings set org.gnome.desktop.interface show-battery-percentage true) or when I use ‘screenfetch’, I get the error stated above, along with screenfetch showing no themes. I noted that libselinux was apart of the AUR, and if I install and use that, gsettings runs in a ‘memory mode’ and doesn’t save my settings. It also would not make sense for gsettings to require something from the AUR.
Things I’ve Tried:
Google. All I can find are a bunch of unanswered bug reports, ubuntu support that doesn’t seem to anything similar either.
Using libselinux off the AUR, but that only created a new problem with gsettings using a ‘memory’ backend and not savivng my settings
install dconf-editor. I’m not sure if this was supposed to be pre-installed or not, I can’t remember because other OS’s have, but either way, I installed this and this is what it shows, which seems kinda bare-bones that what I remember seeing, but I’m no expert.
I’ve done a fresh install of antergos yesterday, and most of the things I’ve done so far are putting things into ~/.themes, ncurses5-compat-libs for MATLAB, tilda for the sweet drop down terminal, anaconda for sweet python packages. I feel though I noticed this somewhat early on before much was installed as one of the first things i do is type ‘gsettings set org.gnome.desktop.interface show-battery-percentage true’.
EDIT: Solved it. I installled anaconda, which is something for python packages and what not, that I got because of some programming event I went to. When installing it on linux, it asked if it wanted to change the path of my .bashrc, but that messed up the path that gsettings saw, and it stopped working. Once I deleted the line anaconda added, it worked again!