Bug 416932 - Dead link in File -> Statistics -> Help
Summary: Dead link in File -> Statistics -> Help
Status: CONFIRMED
Alias: None
Product: frameworks-kguiaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.66.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-29 22:29 UTC by Andrew Chen
Modified: 2020-03-06 11:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Chen 2020-01-29 22:29:09 UTC
Also in Help -> Kile Handbook

Link goes to page saying "The branch stable5 is not available for the specified application/language."
Comment 1 Burkhard Lück 2020-02-14 10:39:50 UTC
1) kile master build from sources
File -> Statistics -> Help: corresponding handbook section in KHelpcenter opened
Help -> Kile Handbook: Kile handbook in KHelpcenter opened

2) Ubuntu 19.04 disco
File -> Statistics -> Help: corresponding handbook section in KHelpcenter opened
Help -> Kile Handbook: Kile handbook in KHelpcenter opened

3) Neon up to date with kile 2.9.92
With package kile-doc installed
File -> Statistics -> Help: corresponding handbook section in KHelpcenter opened
Help -> Kile Handbook: Kile handbook in KHelpcenter opened

Without package kile-doc
File -> Statistics -> Help: KHelpcenter with page "Documentation not found" opened
Help -> Kile Handbook: KHelpcenter with page "Documentation not found" opened

The error you describe is not repruducible for me.

Do you have the Kile documentation and KHelpcenter installed?

Run "ls /usr/share/doc/HTML/de/kile/index.docbook" in a konsole and report the output please.
Comment 2 Andrew Chen 2020-02-14 13:11:17 UTC
I don't have KHelpcenter installed.

File -> Statistics -> Help takes me to this page: https://docs.kde.org/index.php?branch=stable5&language=en_US&application=kile&path=/kile/statistics.html

$ ls -l /usr/share/doc/HTML/de/kile/index.docbook
-rw-r--r-- 1 root root 196141 Oct 20 14:19 /usr/share/doc/HTML/de/kile/index.docbook

With KHelpcenter installed it takes me to the right page in KHelpcenter.
Comment 3 Burkhard Lück 2020-02-14 13:56:56 UTC
Having "/usr/share/doc/HTML/de/kile/index.docbook" installed, but not the application KHelpcenter to display the content looks like a packaging bug to me.

In frameworks/kguiaddons/src/util/urlhandler.cpp:49 the url to the handbook on docs.kde is constructed with branch "stable5" in the url, if the application KHelpcenter is not available on the system.
See https://cgit.kde.org/kguiaddons.git/commit/src/util/urlhandler.cpp?id=c61b3a8acfd013e50219e62da68f300ab43acfaf

Unfortunately Kile has no stable5 branch, only a trunk5 + trunk4 branch on docs.kde.org.

With the wrong url for Kile you get the error you reported in comment #1

This will happen as well for all frameworks documentation + KStars, LabPlot, GCompris Administration, KPhotoAlbum, Showfoto, KGraphViewer, digiKam, Skanlite, KDevelop, Amarok, Kaffeine, rekonq, Choqok, Skrooge, KSig, Trojita, KTimeTracker, ring-kde, Partition Manager, KPager, kdesrc-build Script, RSIBreak, KEuroCalc because they only have a trunk5 branch on docs.kde.org.

Same for some apps like KMid and others with only a trunk4 branch.

@cfeck:
Looks like a bug in kguiaddons and should be moved there, right?
Comment 4 Andrew Chen 2020-02-14 21:36:36 UTC
Regarding packaging, I did not install my distro's meta package with all the kde applications, instead I installed the ones I wanted individually. Probably not really a bug.
Comment 5 Christoph Feck 2020-03-06 11:16:29 UTC
Probably. Let's move it.