![]() Registered Member ![]()
|
Hello,
I've made a kioslave that lets you view the documentation in /usr/share/doc and similar directories. I based it off kio_info, and make a bash script from scratch to do the actual conversion. The kioslave itself works fine, so I decided I would make a kinfocenter plugin. I copied the one for info, as I did before, and just changed info:/dir to usrsharedoc:/ and removed the KHelpCenter-Special line. However, when I try to view it in khelpcenter, it just starts konqueror at usrsharedoc:/ rather than doing it in the khelpcenter window: not very good! I've been stumped with this for ages; if I change the plugin to point to man:/ or info:/dir or something, it works fine. I can't figure out why this is happening! Can someone please enlighten me? Thanks! |
![]() Administrator ![]()
|
You probably need to install a file under $KDEDIR/share/apps/khelpcenter/plugins ( or $KDEDIR/share/kde4/apps/khelpcenter/plugins on some systems )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
No, you miss the point. That's what I've done, and it appears in the ToC and in the bar on the left. But when I click it, it loads the page in Konqueror rather than in the khelpcenter4 window. If I replace the directory the "plugin" points to, to something like man:/ or info:/, it works fine, but not with my own protocol.
|
![]() Administrator ![]()
|
Does restoring the KHelpCenter-Special line using another modules name ( such as info ) or your own work?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
No. I've tried setting it to info and man, and neither work. It still just starts konqueror. |
![]() Administrator ![]()
|
Unfortunately it appears that KHelpCenter hardcodes the urls it will accept.
You will need to patch KHelpCenter in order for it to load your url.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
In which source file are the URLs hardcoded? |
![]() Administrator ![]()
|
mainwindow.cpp has some of the handling of it I believe.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Ah, thanks a lot. That looks like it.
EDIT: Yeah, that works ![]() |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]