SUMMARY It would be nice to also parse the output of the `manpath` command instead of the $MANPATH environment variable, if the manpath command is available (it is installed with man-db, so it should virtually always be available ?). This may even make parsing `/etc/manpath.config` by hand unnecessary, as well as looking into the $MANPATH environment variable, since the `manpath` command covers both these cases. Note that this is not a duplicate of #22446. The motivation for this case is that under NixOS, the manpath.conf is in a non-standard location, but `manpath` gives reliable output. Although I don't fully understand how manpaths and catpaths work, the output of `manpath -c` might be useful instead of constructing something by hand based on `/etc/manpath.conf`, but that is just a hunch. STEPS TO REPRODUCE 1. Install KDE on nixos 2. install kio-extras with man protocol support OBSERVED RESULT Open Help center, notice empty man pages section EXPECTED RESULT find all man pages in the man pages section SOFTWARE/OS VERSIONS Linux/KDE Plasma: NixOS 18.09 (available in About System) KDE Plasma Version: 5.13.4 KDE Frameworks Version: 5.49.0 Qt Version: 5.11.1 ADDITIONAL INFORMATION