Is it possible to backup and restore Thunar custom actions

backupfile-managerthunar

I think that as far as file-manager context menu actions go, Thunar's are the most accessible and easy to manage, especially that the program is so light and easy to install.

I have always created a lot of such "customizations", but I never tried to back them up and restore them later.

Is it possible?

enter image description here

Best Answer

Custom Thunar actions are stored in ~/.config/Thunar/uca.xml; copying that file elsewhere will provide a backup that you can restore in future simply by copying it back.

When restoring a file, it’s worth checking to see whether the system you’re copying the file to has any interesting actions of its own (e.g. from new defaults in a newer version of Thunar). Each action in the file is stored as an <action> XML element; by copying these elements (<action>, the corresponding closing </action> and all the text in between), individual actions can be copied, or all the actions from the backup can be merged with the actions of the file in place.

Related Question