After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 111627 - Configurable commands
Configurable commands
Status: RESOLVED WONTFIX
Product: acme
Classification: Deprecated
Component: general
unspecified
Other Linux
: High enhancement
: ---
Assigned To: Bastien Nocera
Bastien Nocera
: 111645 112972 113159 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-04-26 08:05 UTC by Devin Carraway
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch making most external commands configurable (4.14 KB, patch)
2003-04-26 08:06 UTC, Devin Carraway
none Details | Review

Description Devin Carraway 2003-04-26 08:05:25 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.
Comment 1 Devin Carraway 2003-04-26 08:06:27 UTC
Created attachment 16022 [details] [review]
Patch making most external commands configurable
Comment 2 Bastien Nocera 2003-04-26 15:47:54 UTC
*** Bug 111645 has been marked as a duplicate of this bug. ***
Comment 3 Elijah Newren 2003-04-26 23:20:28 UTC
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.
Comment 4 Bastien Nocera 2003-05-20 17:35:49 UTC
*** Bug 112972 has been marked as a duplicate of this bug. ***
Comment 5 Bastien Nocera 2003-05-20 17:38:07 UTC
*** Bug 113159 has been marked as a duplicate of this bug. ***
Comment 6 Stian Jordet 2003-08-21 16:15:32 UTC
Will this patch ever get applied? It works nice for me, really like it
a lot.
Comment 7 Vesa Halttunen 2003-12-09 22:52:38 UTC
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 :)
Comment 8 Stian Jordet 2003-12-09 23:02:34 UTC
/me cheers
Comment 9 Bastien Nocera 2003-12-09 23:05:20 UTC
Most of those will be removed when merging in the control-center.
Comment 10 Stian Jordet 2003-12-09 23:12:15 UTC
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!
Comment 11 Bastien Nocera 2003-12-09 23:16:42 UTC
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.
Comment 12 Stian Jordet 2004-04-07 14:40:19 UTC
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?
Comment 13 Bastien Nocera 2004-04-07 14:47:53 UTC
See http://bugzilla.gnome.org/show_bug.cgi?id=102613#c7
Comment 14 Stian Jordet 2004-04-08 01:19:03 UTC
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