gnu: khelpcenter: Fix program.

* gnu/packages/kde-systemtools.scm (khelpcenter): Wrap XDG_DATA_DIRS to
point to khtml where it can find the html4.css file, otherwise
khelpcenter fails to launch.

Signed-off-by: Marius Bakke <marius@gnu.org>
This commit is contained in:
Brendan Tildesley 2022-02-06 18:32:30 +11:00 committed by Marius Bakke
parent 8cfe7e0321
commit bf771c9e96
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -160,7 +160,17 @@ (define-public khelpcenter
qtbase-5
xapian))
(arguments
`(#:tests? #f)) ;; 1/1 test fails
`(#:tests? #f ;; 1/1 test fails
#:phases
(modify-phases %standard-phases
(add-after 'install 'wrap-executable
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")))
;; Since qt-wrap selectors do not wrap for /share/kf5
;; directories, we need this so khelpcenter can find html4.css.
(wrap-program (string-append out "/bin/khelpcenter")
`("XDG_DATA_DIRS" suffix
(,(string-append (assoc-ref inputs "khtml") "/share"))))))))))
(home-page "https://apps.kde.org/khelpcenter/")
(synopsis "KDE documentation viewer")
(description "KHelpCenter uses meta data files which describe the