Modify the desktop by adding the shebang for /usr/bin/xdg-open to it and make the file executable
with chmod +x <file> so it is executable from the command line.
#!/usr/bin/xdg-open
[Desktop Entry]
Create the file ${HOME}/.local/share/applications/desktop-file-launcher.desktop which can execute the *.desktop
files using kioclient5 with subcommand exec.
[Desktop Entry]
Comment=Launch a desktop file as from the desktop itself.
Exec=kioclient5 exec
Icon=org.kde.plasma.quicklaunch
Name=Desktop File Launcher
NoDisplay=false
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=
Update the menu database with kbuildsycoca5 --noincremental to create the cached resource file.
xdg-mime default 'desktop-file-launcher.desktop' application/x-desktop
Using xdg-mime can tell which application is bound to the passed mime.
xdg-mime query default application/x-desktop