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 113159 - should be able to choose program that is run when calculator key is pressed
should be able to choose program that is run when calculator key is pressed
Status: RESOLVED DUPLICATE of bug 111627
Product: acme
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal trivial
: ---
Assigned To: Bastien Nocera
Bastien Nocera
Depends on:
Blocks:
 
 
Reported: 2003-05-17 01:01 UTC by Dagmar d'Surreal
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to replace obsolete features like gnome-calculator with something configurable (2.17 KB, patch)
2003-05-17 01:03 UTC, Dagmar d'Surreal
none Details | Review
patch against head (2.39 KB, patch)
2003-05-20 03:57 UTC, Alex Duggan
none Details | Review

Description Dagmar d'Surreal 2003-05-17 01:01:18 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.
Comment 1 Dagmar d'Surreal 2003-05-17 01:03:23 UTC
Created attachment 16584 [details] [review]
Patch to replace obsolete features like gnome-calculator with something configurable
Comment 2 Dagmar d'Surreal 2003-05-17 01:09:38 UTC
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.
Comment 3 Alex Duggan 2003-05-20 03:56:43 UTC
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?
Comment 4 Alex Duggan 2003-05-20 03:57:12 UTC
Created attachment 16653 [details] [review]
patch against head
Comment 5 Bastien Nocera 2003-05-20 17:38:08 UTC
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 ***
Comment 6 Dagmar d'Surreal 2003-05-21 05:54:44 UTC
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.
Comment 7 Bastien Nocera 2003-05-21 09:29:05 UTC
Yes, but galculator, and co. aren't in the desktop release.
Comment 8 Mark McLoughlin 2003-07-23 15:30:59 UTC
*** Bug 118124 has been marked as a duplicate of this bug. ***
Comment 9 Mark McLoughlin 2003-07-23 15:31:56 UTC
wrong bug sorry