Custom PCManFM-Qt Context Menu not showing

I’m trying to add a context menu to convert selected image to .webp format. I already search for it but only for Nautilus and still figuring out how to do that in PCManFM-Qt.
Things that I already tried:

  1. Install fma-config-tool
  2. Create .desktop file inside ~/.local/share/file-manager/actions/
  3. Create .sh script to print the name of the selected file

But still the context menu not even showing up in PCManFM-Qt.
Additional Information:

  • File Manager: PCManFM-Qt v. 0.14.1
  • OS: Lubuntu 20.04.2 LTS
  • DE: LXQt
  • WM: KWin
  • WM Theme: WhiteSur

Here’s the image

Could you please explain what are you trying to do (if possible in detail) and show us the .desktop file used and the .sh script willing to be executed?

I’m trying to create a context menu, (Right click > Convert WebP) so that all .png image file in the folder converted into .WebP file format. The context menu didn’t even show up.



I have tried to do the same as you are asking with other action (open a file with lximage-qt).
I think that it can help you despite the fact that the right click context menu only works over folders. :frowning:


i) Create this folder:


ii) Create a new file inside the created folder which filename must end in .desktop

Example: “open with lximage-qt.desktop”
$HOME/.local/share/file-manager/actions/open with lximage-qt.desktop

iii) Inside “open with lximage-qt.desktop” file, copy this:

[Desktop Entry]
Tooltip=open with lximage-qt
Name=open with lximage-qt
Exec=/usr/bin/lximage-qt %u

[X-Action-Profile profile-zero]
Exec=/usr/bin/lximage-qt %u
Name=Default profile

iv) Assign execute permission to “open with lximage-qt.desktop” file in file properties with right click context menu.

v) Close session.

vi) Start session.


pd: the right click context menu only works over folders. :frowning:


This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.