Bug 404022 - query output of `manpath` command if possible
Summary: query output of `manpath` command if possible
Status: REPORTED
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: default (show other bugs)
Version: 18.08.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-06 15:59 UTC by timor.dd
Modified: 2019-02-06 15:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description timor.dd 2019-02-06 15:59:57 UTC
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