[Note: I'm sorry if this has been asked before. I googled, I searched StackOverflow and other forums but couldn't find anything. Which is pretty weird in my opinion, because to me this seems like a very important question...]
[I'm on Xubuntu 16.04 with stock Thunar 1.6.10-2ubuntu1.]
I really like Thunar's custom action mechanism. They make using Thunar quite fun and productive.
But every time you do a new system installation there's this annoying process of re-entering or modify-and-copy-ing the old custom action configuration file
~/.config/Thunar/uca.xml to get them back.
I am looking for a solution to provide .deb-packages with Thunar custom actions that install somewhere to the system and then appear in every users Thunar custom actions.
This is not a question on debian packaging! I know how to package.
Does anybody know a neat solution to this?
Because I am afraid this is not possible at the current state without some changes in Thunar...
- no need for re-entering or modify-and-copy-ing old configuration files with static paths
- easily keep all your Thunar installations on all your machines with the same base set of custom actions (super convenient in combination with a personal apt repository)
Attempts I've made so far:
- use synchronization software (e.g. syncthing, dropbox, ...) and create a symbolic link to
~/.config/Thunar/uca.xml(Does not work for other people, only you. Plus, as you most likely have to ship a bunch of scripts, you still have the problem of static paths in the configuration file. Practicable, but not optimal...)
- There's this file
/etc/xdg/Thunar/uca.xml, but it seems to be only a skeleton for new users that start Thunar for the first time. Maybe suitable for new users, but not existing ones.
Problems I see
- Thunar seems to only source the custom actions from the user's configuration file
~/.config/Thunar/uca.xml, not from anywhere in the system [not confirmed! I don't know...]
- There are ugly 'unique-ids' in this file which might have to be hard-coded in the .deb-package, which might collide with manually added custom actions.
- A .deb-package would mean to explicitly not install the 'system-wide' custom actions into the home directories, because that's a no-go in packaging and also no good solution when a new user is created.
So I'm a bit stuck here. I'd appreciate any ideas :-)