Describe libjsoncpp linkage issue

patrick96 2018-02-02 08:36:04 +01:00
parent bc6ce52058
commit 46e953e3bd
No known key found for this signature in database
GPG Key ID: 521E5E03AEBCA1A7
1 changed files with 11 additions and 1 deletions

@ -1,8 +1,18 @@
This page lists some of the issues one can encounter when using polybar. Either quirks in polybar's behaviour or actual bugs we haven't been able to fix yet. This page lists some of the issues one can encounter when using polybar. Either quirks in polybar's behaviour or actual bugs we haven't been able to fix yet.
# Contents # Contents
- [Error While Loading Shared Libraries: libjsoncpp](#error-while-loading-shared-libraries-libjsoncpp)
- [Setting Module Backgrounds when using Gradients](#setting-module-backgrounds-when-using-gradients) - [Setting Module Backgrounds when using Gradients](#setting-module-backgrounds-when-using-gradients)
## Error While Loading Shared Libraries: libjsoncpp
**Problem:** When you update the `jsoncpp` package, you might get the following error, when trying to run polybar:
```
polybar: error while loading shared libraries: libjsoncpp.so.XX: cannot open shared object file: No such file or directory
```
This issue occurs because `jsoncpp` changes the name of their `.so` file every release and there really isn't anything we can do about that.
**Fix:** You have to recompile polybar, so that it links to the new `.so` file. If you use precompiled binaries from a repository, you either have to compile polybar yourself or contact the packager so that they can recompile polybar and publish a package with proper linkage. Alternatively you can symlink the `libjsoncpp.so.XX` file from the error message to `libjsoncpp.so` (most likely in the `/usr/lib` directory).
## Setting Module Backgrounds when using Gradients ## Setting Module Backgrounds when using Gradients
**Problem:** When you use a gradient as your polybar background, explicitly setting any module's background color to whatever you have set as `background-0`, either through the `-background` setting or the `%{B}` formatting tag, will not change the background color at all. **Problem:** When you use a gradient as your polybar background, explicitly setting any module's background color to whatever you have set as `background-0`, either through the `-background` setting or the `%{B}` formatting tag, will not change the background color at all.