Sawfish and the Gnome “Run Application” dialog

It has long annoyed me that I couldn’t attach a keyboard short cut to the Gnome panels “Run Application” dialog in Sawfish.

When people ask on the net about it, the answer is usually “Press Alt-F2”, but that only works in metacity, not in sawfish.

In earlier versions of Gnome there was a gnome-run program, but that has gone.

Then, on this blog, I found an explanation and a little program that opens the “Run Application” dialog. All that’s missing is to use add a Sawfish binding to the program, using the sawfish function run-shell-command.

Download a copy of gnome-run.c here. The program is a simple X11 program, compiled with:

gcc gnome-run.c -o gnome-run -L/usr/X11R6/lib -lX11

Looking at the program, I would expect to be able to do it directly from sawfish, but somehow it didn’t work. What I tried was this:

(send-client-message 'root (x-atom '_GNOME_PANEL_ACTION)
     [(x-atom '_GNOME_PANEL_ACTION_RUN_DIALOG) 0] 32)

but, alas, it didn’t work. Would have been neat, though 🙂

Tags: , ,

5 Responses to “Sawfish and the Gnome “Run Application” dialog”

  1. David Bertenshaw Says:

    Thank you – this has been annoying me for ages…

  2. Brian Gartner Says:

    You are as a god. I still can’t understand the Gnome project moving away from Saw{fish,mill} to Metacity.

  3. alexei.co Says:

    Thank you! For some reason in Compiz Alt-F2 no longer works. This is great!

  4. alexei.co Says:

    I wish there was an easy way to also put the focus into the textbox of the dialog once it is open. If anyone figures this out — please speak! Thanks!

  5. alexei.co Says:

    Nevermind, the focus solution is right there in the original blog:
    http://darkness.codefu.org/wordpress/2004/07/24/152#comment-75742

Leave a Reply

You must be logged in to post a comment.