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

How to make krunner offer firefox bookmarks / documents

Tags: None
(comma "," separated)
blackhole
Registered Member
Posts
74
Karma
0
OS
Hi there,

I'm using Firefox as my main browser and had to notice that krunner seems to offer me only bookmarks / favourites from Konqueror and not from Firefox. How can I change this?

Additionally it seems as if only websites I visited through Konqueror show up under "recently used" in the kickoff menu and not the ones visited by using Firefox. Is that right?

Any thoughts on that?

TIA,
Blackhole
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This is because the appropriate runners do not look for information where Firefox stores it. This can only be changed by writing a new runner that parses Firefox's files and generates the relevant information.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
blackhole
Registered Member
Posts
74
Karma
0
OS
bcooksley wrote:This is because the appropriate runners do not look for information where Firefox stores it. This can only be changed by writing a new runner that parses Firefox's files and generates the relevant information.

That's what I thought. I was only hoping that there already is a plugin or config file of some sort to make krunner check the Firefox information. Do you happen to know how I can add that functionality easily? I'm willing to do a bit of scripting/programming if someone points me to the right direction.

Krunner has been designed with plugins/extensions in mind, right?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KRunner has been designed to be extended, yes. They are called runners. Unfortunately due to the specific nature of the task ( Parsing Firefox data files ) you will have to write your own runner. Documentation on runners is available here: http://api.kde.org/4.x-api/kdelibs-apid ... unner.html


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
blackhole
Registered Member
Posts
74
Karma
0
OS
bcooksley wrote:KRunner has been designed to be extended, yes. They are called runners. Unfortunately due to the specific nature of the task ( Parsing Firefox data files ) you will have to write your own runner. Documentation on runners is available here: http://api.kde.org/4.x-api/kdelibs-apid ... unner.html

Great! Thanks a lot. I wanted to brush up my C++ skills anyway.

One last question: how would I register my firefox-runner with Krunner? Do I have to recompile Krunner with my firefox-runner included? I hope not...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You only need to provide a *.desktop file that specifies the required details. You should be able to find this from the other runners that are floating around.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
MirzaD
Registered Member
Posts
86
Karma
0
OS
there can be an easy but not so flexible workaround, import firefox bookmarks into konqueror...


Bookmarks



Who is online

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