View Single Post
Old January 12th, 2006   #18
Azriphale
A Carafe of Ubuntu
 
Azriphale's Avatar
 
Join Date: Oct 2005
Location: South Africa
Beans: 137
Ubuntu 6.10 Edgy
Re: Knome Guide: Stealing KDE's Eye Candy

I thought that it would probably be better to use the gnome run dialog than the kde one that you suggested.

After doing a bit of research on the gnome run dialog, it seems that a little while ago the "gnome-run" binary disappeard and the dialog was integrated into the gnome panel.

This means that without metacity you cannot directly assign Alt+F2 to open the gnome run dialog.

This may sound like bad news, but
A) The KDE "run command" dialog is, I believe, integrated into kdesktop so you don't want to use that (may as well start using KDE, which I guess you don't want to do)
B) I have come across a simple solution. I am not sure how well it will work for you, but try it and let me know. When I get home I'll give it a shot too.

The solution requires that you compile a simple C app that talks to the Gnome panel and asks it to start the run dialog. So first you need to do this:
Code:
apt-get install build-essential libx11-dev
It may ask you to install some other dependencies, just answer yes.

a file called gnome-run.c.txt is attached to this post. Download it, and rename it to gnome-run.c

In the console, run this command to compile it:
Code:
gcc gnome-run.c -o gnome-run -L/usr/X11R6/lib -lX11
I'm not completely certain thet the -L flag to that is correct, tho.
Try to execute that and see if it works (just type "./gnome-run" in the console where you compiled it). If it does, create a new launcher on your desktop, and make it run that file (you'll need the full path here) to see if it works when not running in the console. If it doen't work, then I'll need to see what can be done later.


Oh, and in kcontrol, is there nothing anywhere in there to set keybindings?

Try looking here:
http://docs.kde.org/development/en/k...r-scripts.html
and here:
http://docs.kde.org/development/en/k...xtra-keys.html

Last edited by Azriphale; January 12th, 2006 at 05:49 AM..
Azriphale is offline   Reply With Quote