GNOME Bugzilla – Bug 111627
Configurable commands
Last modified: 2004-12-22 21:47:04 UTC
In Debian Bug#190537 (http://bugs.debian.org/190537), a user requests that the command invoked for Acme's screensaver action be made configurable for environments not running xscreensaver. I know this issue was taken up in GNOME Bug#105041, and is tagged as resolved there. However, the change applied in response to that bug addresses only certain keyboard actions, while quite a few others are still hardcoded. Was this as far as you intended to go with it? In case it wasn't, I'll attach a patch I wrote to enable configuration of the remaining actions via gconf. I wrote it before noticing a nearly identical patch attached to #105041, but this one is a bit cleaner. It applies against 2.0.3.
Created attachment 16022 [details] [review] Patch making most external commands configurable
*** Bug 111645 has been marked as a duplicate of this bug. ***
Adding PATCH keyword and setting priority->high due to the patch. Also, adding the GNOMEVER2.0 keyword (since Devin said that patch applied to version 2.0.3), and the bugsquad keyword.
*** Bug 112972 has been marked as a duplicate of this bug. ***
*** Bug 113159 has been marked as a duplicate of this bug. ***
Will this patch ever get applied? It works nice for me, really like it a lot.
The MIME types that are used for determining the default application for certain keys (like the Media key) are also hardcoded. For example "audio/x-mp3" is always used for the Media key. This does not work very well because there are multiple MIME types defined for "MP3 audio" but the "File types and programs" desktop preferences dialog only allows one of them, "audio/mpeg" to be edited. There is no easy way for the user to change which application gets launched when "audio/x-mp3" files are encountered (modifying ~/.gnome/mime-info/user.keys does the trick but certainly isn't very nice). This means there is no way to change which application gets launched by Acme. It would be nice to have the above patch applied and a patch for choosing the MIME types to be used. If reasonable defaults are supplied the average user does not need to worry about these keys being in GConf. Even though having "run this program" GConf keys for some of the keys and "run the default program for this MIME type" GConf keys for some does not sound very good it would still much better than the current, rather broken implementation. Writing the MIME type patch is straight forward but I'm not going to write one if it is just going to sit here for 8 months like the other one :)
/me cheers
Most of those will be removed when merging in the control-center.
Ok. Just a fast question which I hope you'll answer. Will that let us start a gnome-terminal? (which is the only feature I miss...). And when will we see the merge with control-panel? Thanks for your great work!
That will allow arbitrary commands to be linked to any keyboard key and key combination recognised by X, and should be in GNOME 2.6.
Hmm. I can't seem to find this feature in Gnome 2.6. I can use the multimedia keys in the keybinding-properties, but can't link arbitrary commands to any keyboard key and key combination. Am I just blind?
See http://bugzilla.gnome.org/show_bug.cgi?id=102613#c7
I got this working, but only for shell scripts. When I try to start a X-application, I just get: AUDIT: Thu Apr 8 03:16:41 2004: 6144 X: client 26 rejected from local host. Is this a (Debian) misconfiguration of the x-server, or do you have any ideas? Best regards, Stian