Context Menu Entry for Cursor AppImage in Dolphin on Fedora Linux

I am trying to create a context menu entry in Dolphin on Fedora Linux to open folders with the Cursor AppImage. Here are the steps I followed:

  1. Created a cursor.desktop file in /usr/share/applications/ with the following content:

[Desktop Entry]
Name=Cursor
Exec=/home/moon/cursor/cursor.appimage --no-sandbox
Icon=/home/moon/cursor/cursor.svg
Type=Application
Categories=Development;


2. Set the permissions for the file using:

sudo chmod 644 /usr/share/applications/cursor.desktop


3. Restarted Dolphin using:

dolphin --quit && dolphin


Despite these steps, the "Open with Cursor" option does not appear in the context menu when right-clicking on a folder in Dolphin.

**Additional Information:**

- The AppImage is located at `/home/moon/cursor/cursor.appimage`.
- I am using Dolphin as my file manager on Fedora Linux KDE6.

I would appreciate any guidance on what might be missing or incorrect in my setup.

Update

I successfully created a service menu for KDE’s Dolphin file manager to launch an application using a custom context menu entry. This can serve as a guide for others who want to add custom actions to their context menus in KDE.

Steps I Followed:

Create a .desktop File: I created a file in the kio/servicemenus directory with the following content:


[Desktop Entry]

Type=Service

Icon=crystal

X-KDE-ServiceTypes=KonqPopupMenu/Plugin

MimeType=inode/directory;

Actions=openWithCursor;

Encoding=UTF-8

[Desktop Action openWithCursor]

Name=Apri con Cursor

Icon=crystal

Exec=/home/moon/cursor/cursor.appimage --no-sandbox

Customize the Path: Remember to replace the path to the AppImage with the correct path on your system.

Place the File: I placed this file in the ~/.local/share/kio/servicemenus directory.

Test the Menu: After creating the file, I restarted Dolphin to see the new context menu entry.

This approach allows you to add custom actions to the Dolphin context menu without needing to be a software developer. For more details, you can refer to the KDE documentation on creating Dolphin service menus.

This solution can be useful for anyone looking to enhance their KDE experience by adding personalized actions to their file manager.