Custom PCManFM 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.
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.
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.

Batch.sh

Test.desktop

Hi,

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:

Instructions:

i) Create this folder:

~/.local/share/file-manager/actions

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]
Type=Action
Tooltip=open with lximage-qt
Profiles=profile-zero;
Name=open with lximage-qt
Icon=/usr/share/icons/gnome/32x32/apps/preferences-desktop-accessibility.png
Exec=/usr/bin/lximage-qt %u

[X-Action-Profile profile-zero]
MimeTypes=inode/directory
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.

Source:
https://forums.bunsenlabs.org/viewtopic.php?id=7248

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

2 Likes

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