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 721667 - Accelerator key map loaded from one file and saved to a different one which is ignored
Accelerator key map loaded from one file and saved to a different one which i...
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: MacOS
2.6.0
Other Mac OS
: Normal normal
: ---
Assigned To: gnucash-mac-maint
gnucash-mac-maint
Depends on:
Blocks:
 
 
Reported: 2014-01-07 00:22 UTC by Mike Alexander
Modified: 2018-06-29 23:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Alexander 2014-01-07 00:22:23 UTC
The code in gnc_gui_init in src/gnume-utils/gnc-gnome-utils.c has an ifdef that causes it to load the accelerator key map from osx_accel_map in the Gnucash package but the code in code in gnc_gui_shutdown in the same file doesn't.  Thus it saves the (possibly modified) accelerator map in ~/Library/Application Support/Gnucash/accelerator-map.  This file is ignored, but will be overwritten with the defaults from osx_accel_map the next time Gnucash is run.  It seems like gnc_gui_init should first load osx_accel_map from the package and then load ~/Library/Application Support/Gnucash/accelerator-map.  Or perhaps it should load ~/Library/Application Support/Gnucash/accelerator-map if it exists and load osx_accel_map only if accelerator-map doesn't exist.  Or a third alternative is to load osx_accel_map in gnc_gui_init and don't save anything anywhere in gnc_gui_shutdown in the Mac version.  I don't know which option would be best since I don't use this version of Gnucash.
Comment 1 John Ralls 2014-01-10 23:18:09 UTC
r23679 does the last choice. There's no way to change the accelerators while GnuCash is running when the Mac menus are in use.
Comment 2 John Ralls 2018-06-29 23:24:04 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=721667. Please update any external references or bookmarks.