Request for Enhancement (RFE). Please add the ability to edit the right click on the desktop context menu. 4.12 would be nice! Many thanks, -T
Sorry for the late reply . The context menu can already be customized by using "user costom actions" in thunar. thunar --> edit --> configure custom actions However it is not possible to remove existing items. Is that sufficient for you ? What exactly you want to change ?
want the ability to directly add/edit/delete items from the right click context menu I have used the Thunar thing as a crude workaround.
You request the ability to remove as well the default items ? ( If yes, what would be your use-case to do that ? ) Or do you just request a different way to add / edit / remove custom actions ? ( Similar than now, but via some <configure menu items> button in the context menu instead of going through Thunar ) In any case .. .this is nothing I would want to spend time on, since the benefit IMO is minimal. --> Patches are welcome ! ;)
"Open Terminal Here" meaning the Desktop, is the most useless command on the menu. I would love to ace it. If you decide not to implement my request, would you please post here where to manually edit this menu with "vi". I do program, but my skill level is about 1/20 of what I need to submit patches here. :'(
The thunar custom actions are stored in $HOME/.config/Thunar/uca.xml Make sure to quit the thunar daemon before edit: ( thunar -q ) Possibly you can do some tricks with the pattern to dont show "open terminal here" on specific folders, like the Desktop. I dont know how smart it is. For that you will need to look into the code of thunarx.
... IMO there is no gain in editing the file over editing things inside the related thunar uca menu. There is just an increased risk of breaking things ;)
(In reply to alexxcons from comment #6) > ... IMO there is no gain in editing the file over editing things inside the > related thunar uca menu. There is just an increased risk of breaking things > ;) It would be a nice thing to have in the future, but, indeed, a low priority
(In reply to alexxcons from comment #5) > The thunar custom actions are stored in $HOME/.config/Thunar/uca.xml > > Make sure to quit the thunar daemon before edit: ( thunar -q ) Awesome. I have been looking for that for about two years. Thank you! What is the syntax to comment out things in uca.xml?
(In reply to Todd from comment #8) > What is the syntax to comment out things in uca.xml? <-- --> By chance. By the way, killing thunar (double checking with ps), editing uca.xml, restart thunar as a daemon, does not work. Is there some other thing that need to be reset?
"Open Terminal Here" might be useful for other users, I myself use it from time to time. The custom actions is bit limited in the sense of excluding folders, i.e. where an action should not be available. You can for example set a custom action appearance condition with the File pattern *Dekstop*, but cannot negate it AFAICT (didn't look at the source to confirm). Also, I do not recommend to manually edit uca.xml, it's easy to break things. UCA's UI covers all possible parameters provided by thunarx API. If you insist, you can run "kill -i thunar" (watch out for pending file transfers) and comment it with <!-- -->, though I'm almost sure the comments will be erased as soon as you edit custom actions via thunar.
Instead of allowing users to add/remove entries (no idea how to accomplish that), what about an option to handle File pattern (from the Custom Action appearance condition) as regex? In this case the user would be able to craft a regex that evaluates to true for some folders or not, kinda black or white list.