This forum has been archived. All content is frozen. Please use KDE Discuss instead.

khelpcenter plugin just starts konqueror

Tags: None
(comma "," separated)
Muzer
Registered Member
Posts
12
Karma
0
OS
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!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
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]
Muzer
Registered Member
Posts
12
Karma
0
OS
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.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
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]
Muzer
Registered Member
Posts
12
Karma
0
OS
bcooksley wrote:Does restoring the KHelpCenter-Special line using another modules name ( such as info ) or your own work?

No. I've tried setting it to info and man, and neither work. It still just starts konqueror.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
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]
Muzer
Registered Member
Posts
12
Karma
0
OS
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.

In which source file are the URLs hardcoded?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
mainwindow.cpp has some of the handling of it I believe.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Muzer
Registered Member
Posts
12
Karma
0
OS
Ah, thanks a lot. That looks like it.


EDIT: Yeah, that works :D


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]