LWN.net Logo

KRunner and GNOME Do: the run command evolves

February 11, 2009

This article was contributed by Bruce Byfield

KRunner and GNOME's Do are both descendants of the Run tools that have been part of desktop environments for years. However, instead of allowing you to enter a single command, both Do and KRunner are rapidly evolving into full-scale application launchers that rival main menus as a tool from which to control the desktop. Both require practice to use well, but, their compactness on the screen may appeal to intermediate to advanced users — especially those who prefer keyboard shortcuts to using the mouse.

A new version of KRunner has just been released along with KDE 4.2, and should be available soon in your distribution's repositories along with the rest of the new version, although some distributions may not include it in the default KDE installation.

By contrast, Do is less tightly integrated into its desktop's development cycles, but version 0.8.0 of Do was released in late January. You can find installation instructions on the Do project site. However, many of the distributions listed do not yet have the latest version in their repositories, so, in many cases, the best option is to compile the source code, after first installing Mono support.

Using KRunner

[KRunner]

Like Do, KRunner opens in a small window. To use it, you press Alt+F2 to start the program, then start typing. In response, KRunner displays a list of programs that could complete your input, rather like tab completion in the BASH shell, except in visual form.

In the simplest cases, what you type can be a command. On this level, KRunner differs little from a Run command, aside from the fact that you can tab to a selection or click it with the mouse. However, two dozen plugins that are installed along with the basic program extend KRunner's capabilities far beyond those of a Run command. Provided that the calculator plugin is installed and enabled, you can enter basic calculations in KRunner, using an asterisk (*) for a multiplication sign and a forward slash (/) for division along with the plus and subtraction signs. Similarly, you use KRunner to convert units of measurement, or to open a web site for currency conversion. Other plugins allow you to open a web search or to search bookmarks, contacts, recent documents or your web browser history.

The one catch with many plugins is that you need to learn a simple syntax in order to use them. For example, if you want to do a web search for "LWN" using Google, you would enter "gg:LWN". In much the same way, if you wanted to convert the average human body temperature from the Fahrenheit to the Celsius scale, you would enter "98.8 F. in C.". Fortunately, KRunner is well-documented, so you should have little trouble learning the syntax for your favorite commands.

A small complication is that KRunner includes task-oriented and command-oriented views. But apart from the positioning of suggestions, the difference is chiefly what sort of completions KRunner offers. The main advantage of the different views is that by carefully selecting them and enabling or disabling plugins, you can make the completions more likely to be the ones you want.

In addition to the two views, KRunner also offers a view of currently running processes that you can use to kill misbehaving applications. Short of a link to other system settings, KRunner could hardly be more of a command center for desktop activities.

Using Do

[GNOME Do]

Do works in approximately the same way as KRunner, differing mostly in the details. To invoke Do one generally uses the "Super + Space" (typically Windows key along with space bar) combination. Like KRunner, Do works on the most basic level by suggesting completions for the shell command, binary, or task that you type. When the completion you want appears, a Run button opens in a right-hand pane that you can navigate to via the Tab key.

One of Do's main differences from KRunner is in some of the plugins you can use. As you would expect, Do uses GNOME applications like Evolution and Rhythmbox to handle requests, while KRunner uses KDE choices such as KMail or Amarok. Besides having thumbnail file previews, Do is also noticeably more web-oriented than KRunner, with plugins for blogging, RSS feeds, and Google Contacts. In fact, if you choose, you can even use Do to write a tweet or short email.

The latest version of Do also includes support for themes. One of the most useful of these themes is Docky, which converts Do into a launchpad with configurable application icons, making it more of a main menu replacement than ever.

Conclusion

Both KRunner and Do are convenient tools, and run almost as well under other desktops as they do on their native ones. Both, too, amount to a centralized control center that is often more convenient than hunting down the individual program in the sub-menus.

All the same, neither is a tool for a beginner. True, both support task completions, so that you can, for instance, write an email without having to remember what program is the default for emails on your desktop. However, I suspect that most users are oriented to programs more than tasks. Since neither of these programs offers a complete list of available programs, new users may find either KRunner or Do hard to use.

While a traditional menu can be cumbersome, it does have the advantage of displaying a complete list of possibilities. By comparison, in KRunner or Do, you need to already know the possibilities. Otherwise, you can hardly begin to enter one or search for it. And, to further complicate matters, some users may not remember the necessary syntax to use certain plugins unless they use the plugins constantly. This limitation affects both KRunner or Do, although Do has a simpler interface.

But for more experienced users, after a brief learning period, programs like KRunner or Do are probably more efficient than menus — not least because you can use them while keeping both hands on the keyboard rather than one straying to the mouse. You might compare the two programs to learning touch-typing: Although neither is immediately accessible, the way that a mouse and a menu are, once you are comfortable, both offer significantly enhanced ease of use and efficiency.


(Log in to post comments)

KRunner and GNOME Do: the run command evolves

Posted Feb 12, 2009 10:30 UTC (Thu) by mosfet (guest, #45339) [Link]

It will be a long way until these tools reach the functionality comparable to LauchBar. But it's a start :)

KRunner and GNOME Do: the run command evolves

Posted Feb 12, 2009 11:18 UTC (Thu) by dgm (subscriber, #49227) [Link]

Not to mention Launchy wich is Open Source (Qt based) and works nicely under Windows too.

KRunner and GNOME Do: the run command evolves

Posted Feb 15, 2009 21:41 UTC (Sun) by fatrat (subscriber, #1518) [Link]

Do clearly states on its home page that it is "inspired by Quicksilver". Which it very blatently is :)

KRunner and GNOME Do: the run command evolves

Posted Feb 12, 2009 14:36 UTC (Thu) by clugstj (subscriber, #4020) [Link]

Geez, if you are trying to be more efficient by keeping your fingers on the keyboard, maybe you should use this very versatile tool called BASH!

KRunner and GNOME Do: the run command evolves

Posted Feb 12, 2009 18:59 UTC (Thu) by droundy (subscriber, #4559) [Link]

It's very hard to use bash in combination with graphical programs. e.g. how do you view a pdf file in bash? After you view it, how do you open another program? Using bash isn't a nice alternative to something that always intercepts keystrokes (e.g. is integrated into a window manager or an application like Do or Krunner).

KRunner and GNOME Do: the run command evolves

Posted Feb 13, 2009 17:19 UTC (Fri) by vmole (guest, #111) [Link]

e.g. how do you view a pdf file in bash?

There are a variety of choices, but I typically use "evince foo.pdf &". I'm not sure why this is harder than KRunner et. al.

KRunner and GNOME Do: the run command evolves

Posted Feb 19, 2009 2:03 UTC (Thu) by SEMW (guest, #52697) [Link]

> I'm not sure why this is harder than KRunner et. al.

Keypresses? Given that both both Do and KRunner integrate with indexing frameworks, so can show a pdf anywhere on your system, I would only have to type "foo<enter>" (4 letters) for Do/KR to get the equivalent of typing "locate output.pdf | xargs evince &<enter>" (36 characters) in bash, a factor of 9 difference.

KRunner and GNOME Do: the run command evolves

Posted Feb 19, 2009 4:55 UTC (Thu) by vmole (guest, #111) [Link]

More likely "evince `locate output.pdf`&" (yes, fragile and doesn't handle locate errors), and far more likely I know which file I want and can use tab completion (yes, I know it works in Krunner et. al. as well) to save key strokes, but yeah, that's a point.

KRunner and GNOME Do: the run command evolves

Posted Feb 12, 2009 20:50 UTC (Thu) by nix (subscriber, #2304) [Link]

bash? Versatile? What's zsh, moonshine? (Note: I do not claim that the zsh
developers were not imbibing moonshine while developing that incredible
collection of featuritis.)

KRunner and GNOME Do: the run command evolves

Posted Feb 13, 2009 17:35 UTC (Fri) by TRS-80 (subscriber, #1804) [Link]

There's been some interesting discussions about ‘Do-ifying’ Gtk (and other applications) such that you could just type the command you want rather than searching through menus or remembering shortcuts.

KRunner and GNOME Do: the run command evolves

Posted Feb 13, 2009 18:24 UTC (Fri) by TRS-80 (subscriber, #1804) [Link]

And Ubiquity is going to be added to Firefox 3.2.

KRunner and GNOME Do: the run command evolves

Posted Feb 15, 2009 12:54 UTC (Sun) by fb (subscriber, #53265) [Link]

I really enjoyed this article as I didn't know about Gnome-do yet.

G-Do seems to be a GTK/Gnome version of Katapult. For me, Katapult was one of the two the most useful and beautiful novelties in KDE (the other being Yakuake).

However for one reason or another, Katapult was dropped and KDE4 brought us (a new) Krunner. Which lacks the simplicity and the beauty of Katapult: just display a huge icon of what you are about to run.

The "Katapult -> KRunner" transition represents, for me, many of the things that went wrong with KDE4: the new version is far worse than the previous.

- The new version is visually cluttered, while the older one was absolutely to the point.

- The new version has worse key binding defaults (alt-f2 against super-<space>)

- the new version is functionally worse: krunner won't always focus the one and only selection.

- the previous version, despite having a "k" in the name, actually had (i) a pronounceable name (ii) that referred to catapult, whereas something that reads "cruner" doesn't actually wins any hearts or minds. And yes name that makes some sense matters, specially when showing the system to non-technical users.

(Hum, sorry for the grumpiness about Krunner, but I still can't figure it out how they could change one interface for the other).

KRunner and GNOME Do: the run command evolves

Posted Feb 16, 2009 10:19 UTC (Mon) by nye (guest, #51576) [Link]

For my part, I could never figure out what katapult was for or why anybody would want to use it. The very limited documentation for it just seemed to assume that you'd see it and love it, but it seemed like a crippled version of the standard run dialogue, with bling. Unfortunately, krunner seems rather like that to me too. I'm willing to give it the benefit of the doubt for the moment because some of the problems with it are clearly bugs, but it's slow enough to use that it interrups my train of thought while doing so.

KRunner and GNOME Do: the run command evolves

Posted Feb 19, 2009 9:10 UTC (Thu) by Janne (guest, #40891) [Link]

"The "Katapult -> KRunner" transition represents, for me, many of the things that went wrong with KDE4: the new version is far worse than the previous."

Your comparison is flawed. Krunner is not a replacement for Katapult, it's a replacement for the old KDE Run-dialog. IIRC Katapult was a third-party app. If the developer of Katapult decided not to port his app to KDE4, that's his choice.

"- The new version is visually cluttered, while the older one was absolutely to the point. "

Um, Krunner looks very, very basic. It's just a textbox where you can enter text. Results are then displayed as icons and text. It couldn't really be any more uncluttered.

"- The new version has worse key binding defaults (alt-f2 against super-<space>) "

Krunner uses the old run-dialog shortcut, since that is what it replaces. That said, you can easily change it to something else (I use Alt+Space).

KRunner and GNOME Do: the run command evolves

Posted Feb 19, 2009 10:30 UTC (Thu) by fb (subscriber, #53265) [Link]

""Your comparison is flawed. Krunner is not a replacement for Katapult, it's a replacement for the old KDE Run-dialog. IIRC Katapult was a third-party app. If the developer of Katapult decided not to port his app to KDE4, that's his choice.""

From the perspective of an end user. Krunner is the only replacement for Katapult. Oh, well, to be honest I should say that it is the only _KDE_ replacement for it, as I now learned about this Gnome-Go, and that Launchy is now available for Linux.

Second, the point with KDE4 is right on the mark, the application is not available anymore due to the fact that that the underlying system forced an application rewrite.

Perhaps you are interested in discussing _if_ and (if it's the case) _who_ is responsible for this. I am not. As a KDE user, what matters to me is that I lost this incredible tool, and was left with something worse as a result of this upgrade. And as I said, that pretty much sums my personal experience with KDE4 so far.

""
Um, Krunner looks very, very basic. It's just a textbox where you can enter text. Results are then displayed as icons and text. It couldn't really be any more uncluttered.
""

If you are saying this, I would guess that you never used Katapult, or Gnome-Go for that matter.

Katapult had no buttons, no clickable elements, no text box, no empty space beneath reserved to display icons. Since it had no focus (actually it had one and only one), it would never fail to launch (when the user hit <enter>) because somehow the focus had gone wrong.

KRunner and GNOME Do: the run command evolves

Posted Feb 19, 2009 12:49 UTC (Thu) by Janne (guest, #40891) [Link]

"From the perspective of an end user. Krunner is the only replacement for Katapult."

You might think that, but Krunner is a replacement of the Run-dialog. If you compare Krunner to it's predecessor (the run-dialog), you would see that it's leaps and bounds better than it's predecessor is. The fact that you decide to compare it to completely unrelated app makes your comparison flawed.

"Second, the point with KDE4 is right on the mark, the application is not available anymore due to the fact that that the underlying system forced an application rewrite."

Maybe you should complain to the Katapult-developer then? Things change, KDE included. KDE-devels are not responsible for every single KDE-app out there.

"If you are saying this, I would guess that you never used Katapult, or Gnome-Go for that matter. "

The complaint was that "Krunner is visually cluttered". It's not. Now, it might be that Katapult or some other tool is even less cluttered that Krunner is, but that does not mean that Krunner is cluttered. Like I said, It's just a textbox.

"Katapult had no buttons"

By default, Krunner has two buttons (IIRC). Does two buttons mean that it's "cluttered"?

"no clickable elements"

Just because something is clickable, does not mean that it's "cluttered".

[quote]no empty space beneath reserved to display icons."

Krunner only has space for icons when you actually type something and it's displaying icons. In untyped state, it's just a textbox.

If you so love Katapult and hate Krunner, then maybe you should contact the Katapult-developer and urge him to port his app. Or maybe you should write one yourself.

KRunner and GNOME Do: the run command evolves

Posted Feb 19, 2009 7:59 UTC (Thu) by muwlgr (guest, #35359) [Link]

Using Mono is certainly putting yourself on the way to destruction :>

Copyright © 2009, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds