0

NOTE: This relates to pcmanfm-qt not pcmanfm but I don't have enough rep to create the pcmanfm-qt tag.

I use kdesvn for my svn work which in addition to providing a gui interface to svn, also provides a kde custom action that contains multiple context menu items.

That custom action works in Dolphin, but it does not work in pcmanfm-qt which sucks as I use that as my main fm.

So I want to create a custom action to do the same thing but for pcmanfm-qt.

I've struggled to work out how, and now have managed to create a custom action that contains two sub menu items which point to separate custom actions, and that solution works.

However the original kdesvn context menu that works for Dolphin contains all the sub menu items in one custom action file which is a lot easier to maintain, but I cannot work out how to do that for my pcmanfm-qt custom action.

So this is what I have so far, the first custom action contains the context menu item and links to the two sub menu item custom actions.

This is the main custom action called my-context-menu.desktop

[Desktop Entry]
Type=Menu
Name[en]=KDESVN
Comment=This is my context menu
Icon=utilities-terminal
ItemsList=my-context-sub-one;my-context-sub-two

It is the ItemsList entry that points to the sub menu items which have to be in their own custom action files, such as my-context-sub-two.desktop which contains this content

[Desktop Entry]
Type=Action
Name[en]=kdesvn info
Comment=Performs svn info
Icon=kdesvninfo
Profiles=profile-zero;

[X-Action-Profile profile-zero]
Exec=kdesvn exec info %U

So my question is how can I combine the content of all the sub menu custom actions like my-context-sub-two.desktop in the main custom action my-context-menu.desktop, so I only have one file to maintain?

nobody special
  • 445
  • 4
  • 16

0 Answers0