Where are macro key assignments stored?

When I upgrade Linux Mint, I need to keep my LibreOffice Writer macros and the hotkeys I have assigned them to. They are very extensive, and it is a true pain in the neck to redo the key assignments each time. I can back up the macros from /usr/lib/libreoffice/share/basic, but that does not include key assignments. Can anyone tell me where the latter are stored in the current Mint?

Hello @nsivin,

In LibreOffice version 5.4.1.2 these macro shortcut keys are stored in a file called “registrymodifications.xcu”.

This file is located at “/home/xxx/.config/libreoffice/4/user/registrymodifications.xcu” ( at least on Ubuntu 17.10 , i guess the same path is valid for Mint ).

However since the file “registrymodifications.xcu” also contains other settings besides the macro shortcut keys, it might be easier just to export your shortcut keys directly to a separate .cfg file, and then import that .cfg file again in your new LibreOffice.

Exporting and Importing your shortcut keys can be done via the Customize dialog, tab Keyboard, buttons “Save…” and “Load…” respectively.

You’d have to do that for global LibreOffice, and for each LibreOffice module separately ( Writer, Calc, etc.)

HTH, lib