How to Port Nemo Script Dolphin Actions to Show Slide Show of Selected Files/Folders

Abstract: Resolve the inability to run Nemo slideshow scripts in Dolphin by creating a compatible KIO servicemenu XML file.

Created: 2026-09-19 by
To port a Nemo script for showing slideshows of selected files to Dolphin, you must create a custom action XML file that defines the command and selection criteria. This allows Dolphin’s context menu to execute a slideshow application like feh or eog on the chosen images. The process involves writing an XML descriptor, placing it in the correct configuration directory, and restarting the file manager to apply changes.

Understanding the Transition from Nemo to Dolphin

Nemo uses a specific mechanism called "Actions" defined in INI files located in ~/.local/share/nemo/actions/. Dolphin, being part of the KDE ecosystem, uses a different system based on XML files placed in ~/.local/share/kio/servicemenus/. While both systems allow right-click context menu integration, their syntax and execution environments differ significantly. Migrating a script requires translating the Nemo INI structure into a Dolphin servicemenu XML format.

The core goal is to maintain the functionality: when a user selects one or more image files in Dolphin, they should be able to right-click, select a custom menu item (e.g., "Show Slideshow"), and have those files displayed in a full-screen or windowed slideshow mode. We assume the target system is a Linux distribution using KDE Plasma or a desktop environment with Dolphin installed, such as Kubuntu or openSUSE.

Creating the Custom Action XML File

The first step is to create a new XML file that describes the action. You can name this file something descriptive, such as slideshow.desktop, although the extension .desktop is standard for these service menus. Open your preferred text editor and create a new file.

The XML file must adhere to the Desktop Entry Specification. Below is the essential structure for a slideshow action:

[Desktop Entry]
Type=Service
MimeType=image/*;video/*;application/pdf;
Actions=Slideshow;

[Desktop Action Slideshow]
Name=Show Slideshow
Exec=feh -F -r %F
Icon=media-playback-start
Terminal=false

Let's break down the critical components of this configuration:

  • Type=Service: This tells the system that this file is a service menu entry, not a regular application launcher.
  • MimeType: This field determines when the action appears in the context menu. By specifying image/*, the option will only show up when image files are selected. You can add video/* or other types if needed.
  • Actions: This lists the internal action names defined below. Here we define one action named Slideshow.
  • Exec: This is the command that runs. %F is a special placeholder that Dolphin replaces with the full paths of all selected files. feh -F -r is a common command for feh (Fast Picture Viewer) where -F forces fullscreen and -r enables random order. You can replace feh with eog (Eye of GNOME) or mpv depending on your preference.
  • Terminal=false: This ensures the command runs in the background without opening a terminal window, which is usually desired for media playback.

If you need to pass arguments differently or handle folders, you might use %U instead of %F. %F provides local file paths, while %U provides URLs, which is useful if you want to support remote files later.

Installing the Service Menu

Once you have crafted the XML content, save the file. The next step is to place it in the correct directory so Dolphin recognizes it. Create the directory if it does not exist:

mkdir -p ~/.local/share/kio/servicemenus/

Move your slideshow.desktop file into this directory:

mv slideshow.desktop ~/.local/share/kio/servicemenus/

Ensure the file has the correct permissions. It should be readable by your user:

chmod 644 ~/.local/share/kio/servicemenus/slideshow.desktop

Dolphin caches its service menus. To see the new action immediately, you may need to restart Dolphin. Close all instances of Dolphin and reopen it. Alternatively, you can log out and log back in, but restarting the file manager is usually sufficient.

Testing and Troubleshooting

After restarting Dolphin, navigate to a folder containing images. Select one or more images, then right-click to open the context menu. You should see the "Show Slideshow" option. Clicking it should launch your chosen viewer in slideshow mode.

If the option does not appear, check the following:

  1. MimeType Mismatch: Ensure the files you selected match the MimeType defined in your XML. If you are selecting PDFs, ensure application/pdf is included.
  2. Syntax Errors: Use desktop-file-validate on your .desktop file to check for XML or syntax errors. This tool will report any issues preventing the file from being loaded.
  3. Command Availability: Verify that the command specified in Exec (e.g., feh) is installed and available in your $PATH. You can test this by running the command manually in a terminal with %F replaced by actual file paths.

For more complex scripting needs, such as processing files before viewing, consider how shell scripts integrate with system services. Understanding execution contexts is vital when moving between different file managers.

Advanced Customization

You can extend the functionality by adding multiple actions. For example, you might want a "Fullscreen Slideshow" and a "Windowed Preview." Add another section to your XML:

[Desktop Action Windowed]
Name=Windowed Preview
Exec=eog %F
Icon=media-playback-start
Terminal=false

And update the Actions line to include both:

Actions=Slideshow;Windowed;

This flexibility allows you to tailor the user experience precisely. Remember that each action must have a unique name and a distinct Name field for the context menu label.

If you encounter issues with script execution permissions or environment variables, reviewing general shell script execution principles can be helpful. Properly configuring your environment ensures that your custom actions run reliably across different sessions.

Frequently Asked Questions

What if the slideshow option doesn't appear after creating the file?

First, verify that the file is saved with the .desktop extension and placed in ~/.local/share/kio/servicemenus/. Then, restart Dolphin completely or validate the file using desktop-file-validate to check for syntax errors that prevent loading.

Can I use this method for non-image files like videos?

Yes, simply modify the MimeType field in the XML file to include video/* or specific MIME types like video/mp4. This will make the action appear when video files are selected, allowing you to use players like mpv or vlc in the Exec command.

How do I change the order of images in the slideshow?

The order depends on the player used. For feh, use -r for random order or omit it for alphabetical sorting. For mpv, you can use --shuffle for random playback. Adjust the arguments in the Exec line of your .desktop file accordingly.

Is it possible to run a bash script instead of a direct command?

Absolutely. You can specify a path to a bash script in the Exec line, such as Exec=/home/user/scripts/slideshow.sh %F. Ensure the script is executable (chmod +x) and handles the passed file arguments correctly within the script itself.

Why does my action work in Nemo but not in Dolphin?

Nemo and Dolphin use different mechanisms for context menu extensions. Nemo uses INI files in ~/.local/share/nemo/actions/, while Dolphin uses XML-based servicemenus in ~/.local/share/kio/servicemenus/. You must create a separate configuration for Dolphin even if you already have a working Nemo action.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More