Cannot start mpv from dolphin, but works from start menu or terminal

Whenever I double click on a movie file in dolphin, this shows up in journalctl:

april 18 21:40:32 x1extreme dolphin[61952]: kf.kio.gui: "<html>The command <tt></tt> could not be found.</html>"
april 18 21:40:32 x1extreme plasmashell[59674]: /usr/bin/mpv: symbol lookup error: /usr/bin/mpv: undefined symbol: vkCreateXlibSurfaceKHR
april 18 21:40:32 x1extreme systemd[3604]: Started app-mpv-ef11745f188c4087ad9ce5f2a8fe05d0.scope - mpv Media Player - Multimedia player.
april 18 21:40:32 x1extreme dolphin[61952]: QString::arg: 2 argument(s) missing in mpv

And nothing happens. The movie does not play.

Playing the movie from terminal works. Opening mpv from the start menu, then dragging the movie to the player works.

Have tried dnf reinstall mpv.

F39 KDE Plasma, Wayland

mpv -V                                                                                                                                                                (base) 3.8m
mpv 0.36.0 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
 built on UNKNOWN
libplacebo version: v6.292.1
FFmpeg version: 6.1.1
FFmpeg library versions:
   libavutil       58.2.100 (runtime 58.29.100)
   libavcodec      60.3.100 (runtime 60.31.102)
   libavformat     60.3.100 (runtime 60.16.100)
   libswscale      7.1.100 (runtime 7.5.100)
   libavfilter     9.3.100 (runtime 9.12.100)
   libswresample   4.10.100 (runtime 4.12.100)

Added dolphin

It appears that the command is not associated with the filetype, at least by looking at this line …

april 18 21:40:32 x1extreme dolphin[61952]: kf.kio.gui: "<html>The command <tt></tt> could not be found.</html>"

Perhaps you need to specifically tell the Plasma shell what to use for opening that filetype. Sorry, I’m not a KDE user.

I have tried Open with > Other application > mpv > Remember application association but it makes no difference

What is the output of

whereis mpv

Out of curiosity, mpv is a command line tool and library for playing many video formats, correct? Do you have a GUI front end player installed that uses mpv as it’s back end? If so maybe that program selected in Dolphin as the appropriate program to open the video file can help sovle this for you.

 ~/cod/llm-movie-recommender   …  whereis mpv                                                                                                                                   
mpv: /usr/bin/mpv /etc/mpv /usr/local/etc/mpv /usr/share/man/man1/mpv.1.gz
 ~/cod/llm-movie-recommender   …  which --all mpv                                                                                                                                  
/usr/bin/mpv
/bin/mpv

I don’t use a gui, but uosc

Can you check if mpv.desktop exists?

cat /usr/share/applications/mpv.desktop 
$ cat /usr/share/applications/mpv.desktop                                                                                                           

[Desktop Entry]
Type=Application
Name=mpv Media Player
Name[ca]=Reproductor multimèdia mpv
Name[cs]=mpv přehrávač
Name[da]=mpv-medieafspiller
Name[fr]=Lecteur multimédia mpv
Name[ja]=mpv メディアプレイヤー
Name[pl]=Odtwarzacz mpv
Name[ru]=Проигрыватель mpv
Name[tr]=mpv Ortam Oynatıcı
Name[zh_CN]=mpv 媒体播放器
Name[zh_TW]=mpv 媒體播放器
GenericName=Multimedia player
GenericName[cs]=Multimediální přehrávač
GenericName[da]=Multimedieafspiller
GenericName[fr]=Lecteur multimédia
GenericName[ja]=マルチメディアプレイヤー
GenericName[ru]=Мультимедийный проигрыватель
GenericName[tr]=Çoklu ortam oynatıcı
GenericName[zh_CN]=多媒体播放器
GenericName[zh_TW]=多媒體播放器
Comment=Play movies and songs
Comment[ca]=Reproduïu vídeos i cançons
Comment[cs]=Přehrává filmy a hudbu
Comment[da]=Afspil film og sange
Comment[de]=Filme und Musik abspielen
Comment[es]=Reproduzca vídeos y canciones
Comment[fr]=Lire des vidéos et des musiques
Comment[ja]=映画や音楽を再生する
Comment[it]=Lettore multimediale
Comment[pl]=Odtwarzaj filmy i muzykę
Comment[ru]=Воспроизведение фильмов и музыки
Comment[tr]=Filmleri ve şarkıları oynatın
Comment[zh_CN]=播放电影和歌曲
Comment[zh_TW]=播放電影和歌曲
Icon=mpv
TryExec=mpv
Exec=mpv --player-operation-mode=pseudo-gui -- %U
Terminal=false
Categories=AudioVideo;Audio;Video;Player;TV;
MimeType=application/ogg;application/x-ogg;application/mxf;application/sdp;application/smil;application/x-smil;application/streamingmedia;application/x-streamingmedia;application/vnd.rn-realmedia;application/vnd.rn-realmedia-vbr;audio/aac;audio/x-aac;audio/vnd.dolby.heaac.1;audio/vnd.dolby.heaac.2;audio/aiff;audio/x-aiff;audio/m4a;audio/x-m4a;application/x-extension-m4a;audio/mp1;audio/x-mp1;audio/mp2;audio/x-mp2;audio/mp3;audio/x-mp3;audio/mpeg;audio/mpeg2;audio/mpeg3;audio/mpegurl;audio/x-mpegurl;audio/mpg;audio/x-mpg;audio/rn-mpeg;audio/musepack;audio/x-musepack;audio/ogg;audio/scpls;audio/x-scpls;audio/vnd.rn-realaudio;audio/wav;audio/x-pn-wav;audio/x-pn-windows-pcm;audio/x-realaudio;audio/x-pn-realaudio;audio/x-ms-wma;audio/x-pls;audio/x-wav;video/mpeg;video/x-mpeg2;video/x-mpeg3;video/mp4v-es;video/x-m4v;video/mp4;application/x-extension-mp4;video/divx;video/vnd.divx;video/msvideo;video/x-msvideo;video/ogg;video/quicktime;video/vnd.rn-realvideo;video/x-ms-afs;video/x-ms-asf;audio/x-ms-asf;application/vnd.ms-asf;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvxvideo;video/x-avi;video/avi;video/x-flic;video/fli;video/x-flc;video/flv;video/x-flv;video/x-theora;video/x-theora+ogg;video/x-matroska;video/mkv;audio/x-matroska;application/x-matroska;video/webm;audio/webm;audio/vorbis;audio/x-vorbis;audio/x-vorbis+ogg;video/x-ogm;video/x-ogm+ogg;application/x-ogm;application/x-ogm-audio;application/x-ogm-video;application/x-shorten;audio/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/AMR;audio/ac3;audio/eac3;audio/amr-wb;video/mp2t;audio/flac;audio/mp4;application/x-mpegurl;video/vnd.mpegurl;application/vnd.apple.mpegurl;audio/x-pn-au;video/3gp;video/3gpp;video/3gpp2;audio/3gpp;audio/3gpp2;video/dv;audio/dv;audio/opus;audio/vnd.dts;audio/vnd.dts.hd;audio/x-adpcm;application/x-cue;audio/m3u;
X-KDE-Protocols=ftp,http,https,mms,rtmp,rtsp,sftp,smb,srt,rist,webdav,webdavs
StartupWMClass=mpv

Some bug reports suggest that this error occurs when Google Chrome is installed. If you have Google Chrome installed as a native RPM, could you try uninstalling Google Chrome and test it again?