! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
RFE: please add the ability to edit the right click desktop context menu
Status:
RESOLVED: LATER
Product:
Libxfce4ui
Component:
General

Comments

Description Todd 2017-08-22 01:49:55 CEST
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
Comment 1 alexxcons editbugs 2018-05-11 15:56:08 CEST
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 ?
Comment 2 Todd 2018-05-12 02:43:41 CEST
 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.
Comment 3 alexxcons editbugs 2018-05-12 21:55:08 CEST
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 ! ;)
Comment 4 Todd 2018-05-14 05:16:19 CEST
"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.  :'(
Comment 5 alexxcons editbugs 2018-05-15 21:55:55 CEST
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.
Comment 6 alexxcons editbugs 2018-05-15 21:58:28 CEST
... 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 ;)
Comment 7 Todd 2018-05-15 23:58:02 CEST
(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
Comment 8 Todd 2018-05-15 23:59:49 CEST
(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?
Comment 9 Todd 2018-05-16 00:08:33 CEST
(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?
Comment 10 Andre Miranda editbugs 2018-05-16 00:12:08 CEST
"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.
Comment 11 Andre Miranda editbugs 2018-05-16 13:36:02 CEST
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.

Bug #13810

Reported by:
Todd
Reported on: 2017-08-22
Last modified on: 2018-05-16

People

Assignee:
Nick Schermer
CC List:
4 users

Version

Version:
4.12.1

Attachments

Additional information