GNOME Bugzilla – Bug 113159
should be able to choose program that is run when calculator key is pressed
Last modified: 2004-12-22 21:47:04 UTC
Overview description: Gnome-calculator is painfully obsolete but pushing the Calculator button makes it spring out at the unsuspecting user. Steps to Reproduce: 1) Configure ACME so that the Calculator button is enabled. 2) Press the Calculator button. Actual Results: Gnome-calculator appears on the user's desktop. Expected Results: Something, _anything_ less obsolete should have spawned. Build Date & Platform: 28-04-2003 build on Mein Linux, just for the sake of argument. Additional Builds and Platforms: Pretty much everyone's, I should think.
Created attachment 16584 [details] [review] Patch to replace obsolete features like gnome-calculator with something configurable
The proposed patch eliminates the problem of gnome-calculator spawning by making the behaviour of the button configurable at run-time with a _pair_ of gconf keys, which are as follows: /apps/acme/calc_command - The command that will be run when the Calculator button is pressed. /apps/acme/calc_alt_command - The command that will be run when the Calculator button is pressed if calc_command doesn't work. The new default is to try to run GCalctool, and use gnome-calculator strictly as a last resort. You probably don't want to see the other patch I'm not sending where I added the execute_this_that_or_the_other function. ;) I suppose someone might want to translate the short and long key descriptions in the schema files, but beyond that, it's pretty well complete excepting eventually someone may wish to add a smidge of configuration dialog for that and the sound file gconf key.
Here is a cleaner patch against acme head that allows you to set a gconf key for the calculator command. Bastien, what do you think?
Created attachment 16653 [details] [review] patch against head
ACME is only available for GNOME 2.2, not GNOME 2.3.x, so the only GNOME calculator available is gnome-calculator. *** This bug has been marked as a duplicate of 111627 ***
You feeling okay there, Bastien? Galculator and GConftool both work just fine with Gnome2.2, so gnome-calculator is definitely /not/ the only option available.
Yes, but galculator, and co. aren't in the desktop release.
*** Bug 118124 has been marked as a duplicate of this bug. ***
wrong bug sorry