Katapult-Fast Track

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
Description:

This is a Katapult fork based on the KDE SVN repository. It fixes several outstanding issues of upstream Katapult. Unfortunately, Katapult development stagnated and no progress has been made upstream for half a year. I recently got a response from the project manager of katapult. If you don't think I should hand the changes over upstream, send me a suggestion for a name or else we'll see what we can do to incorporate my changes back into the original katapult.

Improvements over last stable Katapult release:
* Support for multiple results (Press up or down keys to see more results)
* Support for multiple actions (Press left or right keys to see more actions)
* Adaptive search
* Threaded architecture
* Non-blocking DCOP calls

Kudos to the team for providing the framework for multiple results, multiple actions, and multithreaded catalogs.

Caveats:
* Currently, only the program and bookmark catalogs actually return more than one result at a time.
* Only the program catalog supports adaptive search.
* Only the amarok catalog has multiple actions.

What this means for YOU:
* The amarok catalog should not slow down Katapult if you have a big collection of songs.
* The amarok catalog can now queue songs and add songs to the current playlist
* The program catalog will adapt to your launching preferences (i.e. no more "Konquest" results when all you want is "Konqueror")
* You no longer have to type more letters (press the down key to choose something else)

What is still lacking:
* Testing. Especially for the amarok catalog. I only have a couple of GB worth of songs so I can't speak for everyone but this should be an improvement over the last release.
* Spell catalog. I've tried everything to get KSpell to play nice with separate threads (i.e. call KSpell in the main thread, block the worker thread till KSpell is done, then pass the result to the worker thread) but it just won't work.
* Localization. I need translations. You could of course just ./configure the katapult-0.3.2 sources and make install inside only the po directory.

INSTALLATION:
Read the INSTALL file included. For the impatient, it is now CMake based. So either create a build directory or run
[quote]cmake -DCMAKE_INSTALL_PREFIX=$KDEDIR -DREALTRANSPARENCY=1 .[/quote]
within the source directory.

To avoid crashes due to missing display plug-ins or catalogs, make sure the prefix you use is the same as kde-config --prefix or kde3-config --prefix (not sure about that though) for Kubuntu users.


The command should look something like cmake -DCMAKE_INSTALL_PREFIX=/usr -DREALTRANSPARENCY=1 .

using backticks (i.e. `kde-config --prefix`) instead of $KDEDIR might do the trick.

Then make and install as root.

Simply remove the -DREALTRANSPARENCY=1 switch to disable composite support.

USAGE
Real transparency:
Run a compositing window manager such as compiz before launching katapult-fast track. If you switch from KWin to compiz/beryl while Katapult-Fast Track is running, you have to restart Katapult-Fast Track for real transparency to work. Likewise, shifting to KWin from compiz/beryl requires restarting the program.

Amarok catalog:
Amarok must be running first.

Google and exec catalogs:
Type the keyword (either "google" or "exec" without the quotation marks using the defaults) before entering your query.

For any problems, either leave something here or post something at the Katapult forums. I'll get back to you as soon as I can. Please include how to reproduce your problems.
Last changelog:

13 years ago

---------------
0.1.2
- Add real transparency support
- Enable google and exec catalogs
- Theoretically fix a possible crash for duplicate programs
- Switch to CMake

0.1.1
- Fix crashes due to o2 display plug-in
- Add myself to the authors list

neven

13 years ago

I tried with "cmake -DCMAKE_INSTALL_PREFIX=/usr -DREALTRANSPARENCY=1" but i got the same problem.

When i type in konsole kde-config --prefix i get /opt/kde3

I tried to instal vith this prefix but when i try to start katapult from konsole i get this error:
katapult: error while loading shared libraries: libkatapult.so.4: cannot open shared object file: No such file or directory

It seems that katapult is trying to access lib+ file in /usr/lib directory and not in /opt/kde3/lib...

Like some file aren't deleted when i try uninstaling the program
I unsinstall the program with "make uninstall"

When i copy lib* files from /opt/kde2/lib to /usr/lib katapult starts with some duplicate errors in terminal and when i hit alt+space system freezes and katapult crashes...

inux:/home/neven/instal/katapult-fasttrack-0.1.2 # katapult
WARNING: No compositing manager loaded
katapult: Ignored duplicate item: Helix Banshee
katapult: Ignored duplicate item: RealPlayer 10
katapult: Ignored duplicate item: KTnef
katapult: Ignored duplicate item: Search Settings
katapult: Ignored duplicate item: Qt 4 Settings
katapult: Ignored duplicate item: Search Settings
katapult: Ignored duplicate item: Qt Settings
katapult: Ignored duplicate item: YaST
katapult: Ignored duplicate item: Install Software
katapult: Ignored duplicate item: Wallet Management Tool
katapult: Ignored duplicate item: KGet
katapult: Ignored duplicate item: Search Settings
katapult: Ignored duplicate item: Krdc
katapult: Ignored duplicate item: YaST
katapult: Ignored duplicate item: Find Files/Folders
katapult: Ignored duplicate item: Home
KCrash: Application 'katapult' crashing...
linux:/home/neven/instal/katapult-fasttrack-0.1.2

I'm new in this linux world, so forgive my ignorance.

Report

C

dilettante

13 years ago

When you uninstall, it only deletes the files that it installed itself, not the files you copied manually.

Instead of /usr you can use `kde-config --prefix` so the command will look something like cmake -DCMAKE_INSTALL_PREFIX=`kde-config --prefix` -DREALTRANSPARENCY=1 -DCMAKE_BUILD_TYPE=debugfull .

I added the -DCMAKE_BUILD_TYPE=debug full switch so debugging info will be included.

Could you run a gdb katapult command for me? Then type run at the prompt and if the program crashes, type bt. You can mail me the stuff to avoid flooding this page with comments.

Report

ninjagecko

12 years ago

This looks amazing! Katapult is rather unusable without multiple-matches.

However I can't install it. I followed the given directions and am getting the same error:

katapult: error while loading shared libraries: libkatapult.so.4: cannot open shared object file: No such file or directory

I'm using Suse 10.2 and I have a symlink in /opt/kde3/lib/libkatapult.so.4 -> libkatapult.so.4.2.0 ... so it *seems* to be there.

I built it using:
cmake -DCMAKE_INSTALL_PREFIX=`kde-config --prefix` -DREALTRANSPARENCY=1 ./katapult-fasttrack-0.1.2

(kde-config --prefix gives /opt/kde3)

Report

neven

13 years ago

I tried with "cmake -DCMAKE_INSTALL_PREFIX=/usr -DREALTRANSPARENCY=1" but i got the same problem.

When i type in konsole kde-config --prefix i get /opt/kde3

I tried to instal vith this prefix but when i try to start katapult from konsole i get this error:
katapult: error while loading shared libraries: libkatapult.so.4: cannot open shared object file: No such file or directory

It seems that katapult is trying to access lib+ file in /usr/lib directory and not in /opt/kde3/lib...

Like some file aren't deleted when i try uninstaling the program
I unsinstall the program with "make uninstall"

When i copy lib* files from /opt/kde2/lib to /usr/lib katapult starts with some duplicate errors in terminal and when i hit alt+space system freezes and katapult crashes...

inux:/home/neven/instal/katapult-fasttrack-0.1.2 # katapult
WARNING: No compositing manager loaded
katapult: Ignored duplicate item: Helix Banshee
katapult: Ignored duplicate item: RealPlayer 10
katapult: Ignored duplicate item: KTnef
katapult: Ignored duplicate item: Search Settings
katapult: Ignored duplicate item: Qt 4 Settings
katapult: Ignored duplicate item: Search Settings
katapult: Ignored duplicate item: Qt Settings
katapult: Ignored duplicate item: YaST
katapult: Ignored duplicate item: Install Software
katapult: Ignored duplicate item: Wallet Management Tool
katapult: Ignored duplicate item: KGet
katapult: Ignored duplicate item: Search Settings
katapult: Ignored duplicate item: Krdc
katapult: Ignored duplicate item: YaST
katapult: Ignored duplicate item: Find Files/Folders
katapult: Ignored duplicate item: Home
KCrash: Application 'katapult' crashing...
linux:/home/neven/instal/katapult-fasttrack-0.1.2

I'm new in this linux world, so forgive my ignorance.

Report

neven

13 years ago

This pops out :(

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1230481184 (LWP 7277)]
[KCrash handler]
#9 0xb7fe4410 in ?? ()
#10 0xbfc613ac in ?? ()
#11 0x00000006 in ?? ()
#12 0x00001c6d in ?? ()
#13 0xb6ccb060 in raise () from /lib/libc.so.6
#14 0xb6ccc801 in abort () from /lib/libc.so.6
#15 0xb765951a in kdbgstream::flush () from /opt/kde3/lib/libkdecore.so.4
#16 0x080565ea in endl ()
#17 0x0805b0c5 in KatapultSettings::loadDisplayPlugins ()
#18 0x08058a9d in Katapult::Katapult ()
#19 0x0805629f in main ()

Report

neke

13 years ago

KT-FT crashes in Kubuntu 7.04 64 Bits.

When it's launched from konsole I get this message:
Quote:katapult: FATAL: Could not initialize display plug-in!.

The backtrace's here:

Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 47609120697104 (LWP 10857)]
[KCrash handler]
#5 0x00002b4cd938acab in raise () from /lib/libc.so.6
#6 0x00002b4cd938c660 in abort () from /lib/libc.so.6
#7 0x00002b4cd7abb8a9 in kdbgstream::flush () from /usr/lib/libkdecore.so.4
#8 0x0000000000412e54 in endl ()
#9 0x00000000004173f5 in KatapultSettings::loadDisplayPlugins ()
#10 0x0000000000415055 in Katapult::Katapult ()
#11 0x0000000000412b06 in main ()

The old katapultrc has been deleted.

Report

C

dilettante

13 years ago

Where were the files installed? i.e. what was the prefix used for installation? Is it the same as `kde-config --prefix`?

It appears that the libraries are not in your system path. So the program bails out when it can't find the display plug-ins.

My motherboard gave up on me last night and I don't have the money to fix it right now so sorry but I can't really do additional testing at the moment.

Report

neke

13 years ago

Don't worry, KT-FT is working right now, after I've compiled it with:
Quote:
cmake -DCMAKE_INSTALL_PREFIX=/usr -DREALTRANSPARENCY=1

Report

emms007

13 years ago

Also experiencing a crash on kubuntu feisty; Here is the gdb output :

[email protected]:~/apps/katapultv2/katapult-fasttrack-0.1.2$ gdb katapult
GNU gdb 6.6-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) start
Breakpoint 1 at 0x8057011
Starting program: /bin/katapult
[Thread debugging using libthread_db enabled]
[New Thread -1232767280 (LWP 7635)]
[Switching to Thread -1232767280 (LWP 7635)]
0x08057011 in main ()
(gdb) next
Single stepping until exit from function main,
which has no line number information.
WARNING: No compositing manager loaded
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
kio (KMimeType): WARNING: KServiceType::offers : servicetype Katapult/Catalog not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype Katapult/Display not found
katapult: FATAL: Could not initialize display plug-in!

Program received signal SIGABRT, Aborted.
0xffffe410 in __kernel_vsyscall ()
(gdb) next
Single stepping until exit from function __kernel_vsyscall,
which has no line number information.
0xb749fd70 in KCrash::defaultCrashHandler () from /usr/lib/libkdecore.so.4
(gdb) next
Single stepping until exit from function _ZN6KCrash19defaultCrashHandlerEi,
which has no line number information.

Program terminated with signal SIGALRM, Alarm clock.
The program no longer exists.
(gdb)

Report

audrius

13 years ago

Also got crash on Kubuntu Feisty. Whole two katapultrc has been removed.

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1233185072 (LWP 8624)]
[KCrash handler]
#6 0xffffe410 in __kernel_vsyscall ()
#7 0xb6ac3df0 in raise () from /lib/tls/i686/cmov/libc.so.6
#8 0xb6ac5641 in abort () from /lib/tls/i686/cmov/libc.so.6
#9 0xb749e1b9 in kdbgstream::flush () from /usr/lib/libkdecore.so.4
#10 0x0805793a in endl ()
#11 0x0805c415 in KatapultSettings::loadDisplayPlugins ()
#12 0x08059ded in Katapult::Katapult ()
#13 0x080575be in main ()

Report

C

dilettante

13 years ago

Yet another misinstall. What prefix did you use to install it in?

The command for cmake should look something like `cmake -DCMAKE_INSTALL_PREFIX=/usr -DREALTRANSPARENCY=1 .`

My prefix (as used in gentoo) is /usr/kde/3.5 but /usr also works. It should be the directory returned by `kde-config --prefix`.

I'm not sure about Kubuntu though. I think it's kde3-config in Kubuntu.

Report

Clunixchit

13 years ago

Improvements over last stable Katapult release:
* Support for multiple results (Press up or down keys to see more results)

>> OK, it work!

* Support for multiple actions (Press left or right keys to see more actions)

>> It doesn't work

the localization support on the ancient katapult has been removed. is there any reason behind this ?

Report

C

dilettante

13 years ago

In the description above I mentioned that currently only the amarok catalog has multiple actions.

I didn't remove the localization support, it's just that no translations have been written for it. I suppose I could reuse the translations for the old katapult but they'll need updating.

Report

Ekardnam

13 years ago

Found another bug: if you mistype nd try to correct, KFT doesn't find it.

Example:
- Show launcher
- Type "Katapulk"
- Press backspace. No results. If you add a 't' it still doesn't return any results.

Report

C

dilettante

13 years ago

Try the same thing with the original katapult. It doesn't work either. It's an inherited katapult bug but I'll fix it soon :)

Report

charleso

12 years ago

I'm not sure anyway cares at this point, but just thought I'd shed some light on this.

It appears the problem is the introduced use of threading in Fast Track.

katapult.cpp

if(e->key() == Key_BackSpace) {
..
setQuery("");
setQuery(newQuery);

Which originally called queryChanged() synchronously in cachedcatalog.cpp (inherited from katapultcatalog.cpp).

My quick fix/hack was to put a "reset" flag in katapultcatalogue (when query is set to "") which can then be tested for like so:

void CachedCatalog::queryChanged()
{
int newStatus = 0;
if(reset)
{
reset = false;
results.clear();
setBestMatch(Match());
setStatus(newStatus);
}
if(query().length() >= minQueryLen())
...

Hope this helps someone...

Report

kapat

13 years ago

Firstly, kudos for your fork. I am a fan of Katapult.
I am running Debian-Unstable with the original Katapult (0.3.1-1), and I don't see this bug.
1. Katapulk
- nothing
2. backspace
- Katapult shows up

I haven't tried the new fork yet though. Is there any way I can get back to the old one if I want to, after installing this new fork?

Report

Ekardnam

13 years ago

Ah. It's very rare that you type wrong this way, as Katapult gives you the right alternative and you just have to press return :)

Regarding bugs, is it ok to post them here, or do you refer any other places? bugs.kde.org? Mail?

Report

C

dilettante

13 years ago

I think it's best to e-mail me. If someone could suggest a new name, I'd open a new project in sf.net then handle the rest from there.

Report

Superstoned

13 years ago

Nice work on this, looks good.

I think the reason Katapult was/is/seems abandoned is that the normal Run dialog in KDE 4 inherits most of it's functionality (effectively replacing it). Now it's cool to have an updated Katapult for KDE 3, sure, but it won't live very long, I'm afraid.

It'd be cool if you could find something to do with plasma, it seems there's quite some buzzzz there :D

http://www.linux.com/feature/114560

Report

C

dilettante

13 years ago

Actually, from what I was told, the lead developer for katapult left sometime last year. The development version was left unusable by several bugs and no one else picked up the slack.

The project manager stopped replying after my first three e-mails and I got tired of waiting so I fixed most of the bugs myself and released this. :)

But I do agree KRunner will fulfill a lot of what this program tries to do for KDE4. I still think there'll be a niche for a Katapult-like program in KDE4 given that not everything I plan for it will be done by KRunner. Of course, I could just hack on KRunner instead so right now I'm not really sure what to do after I finish the next two feature releases for this.

Report

Ekardnam

13 years ago

I had some troubles with the Global Shortcut to show the launcher, but I've had it before too; it just didn't save my shortcut if I set it to alt+space. I had to set alt+space for both "Primary shortcut" and "Alternative shortcut" to make it work.

Another thing: before, I could type names of items in my K Menu, but not Katapult doesn't show them all. For example, it doesn't show Supertux which I've installed with Klik. It's located in Kmenu->Applications->Applications (installed by klik)->Supertux.

A final not, the "Clear the query after a delay" (When there's no results) doesn't seem to work as expected. Sometimes it just doesn't do anything when I've type something that doesn't return any results.

Hope I didn't sound too negative, if you want more information just ask. :)

Report

C

dilettante

13 years ago

No, it's not that negative at all :) Actually like I said, it lacks testing so any feedback will help improve the program.

I've been unable to reproduce the shortcut problem.

Is there another Supertux desktop file available? The default behavior of the program catalog is to ignore duplicates because adaptive search currently doesn't work properly if duplicates are found.

The clear query after a delay bug is one I didn't notice. I'll look into it. :) Hopefully I can have a patch ready in a couple of days.

Report

Ekardnam

13 years ago

I've found two other kmenu item Katapult can't find: "SVN", which updates Amarok. I added this item using the Menu Editor; "New Item" and then filled all the information by myself.

The Supertux item was added by klik I think. There is another application that I've installed with klik (it's called Tsfsb, don't ask me what it is), Katapult can't find it either.

I've executed both Supertux and SVN with the old version of Katapult. It doesn't seem to ignore them - no complain about duplicated related to these items when I start Katapult.

Report

C

dilettante

13 years ago

Do you by any chance shutdown your computer or restart your session every now and then? If not, does that mean you left Katapult running since you installed it?

The old Katapult and this fork don't detect changes to the menu made when Katapult is running. The work around is to go to the settings dialog and press ok.

The code for detecting programs hasn't changed (except ignoring duplicate items became silent for programs). I only modified the way the rankings they are given based on user launch preferences.

Btw, fixed real transparency support. Will be adding it, along with bugfixes, within the week. Stay tuned. :)

Report

13 years ago

---------------
0.1.2
- Add real transparency support
- Enable google and exec catalogs
- Theoretically fix a possible crash for duplicate programs
- Switch to CMake

0.1.1
- Fix crashes due to o2 display plug-in
- Add myself to the authors list

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.1.2
updated Jul 03 2007
added Jun 23 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0