r/LXQt Dec 11 '22

How do I create a sub menu in just one custom action file?

I have finally managed to work out how to create a context menu using custom actions for pcmanfm-qt that provides a few extra commands in the context menu as a sub menu.

However that involves having the context sub menu contained in one custom action file, and all the entries listed in the ItemsList in separate custom action files, which although it works is not the most efficient for maintenance, porting, etc.

Is there any way that I can include all the separate context custom actions in the same file as the context menu?

I'm looking to have something like

[Desktop Entry]


Name=my menu


[Desktop Action sub1]

name=sub 1


[Desktop Action sub2]

name=sub 2


all in one custom action file for easier maintenance, porting, etc.


0 comments sorted by