在 WSL 中 xdg-open myvideo.mp4。当我关闭 VLC 时,同一视频会在 Chrome 中再次播放,而且我收到很多消息

在 WSL 中 xdg-open myvideo.mp4。当我关闭 VLC 时,同一视频会在 Chrome 中再次播放,而且我收到很多消息

根据标题,当我运行时,xdg-open myvideo.mp4我收到以下消息:

Use of uninitialized value $file in open at /usr/share/perl5/File/MimeInfo/Applications.pm line 140.
Use of uninitialized value $file in open at /usr/share/perl5/File/MimeInfo/Applications.pm line 140.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value $file in open at /usr/share/perl5/File/MimeInfo/Applications.pm line 140.
Use of uninitialized value $file in open at /usr/share/perl5/File/MimeInfo/Applications.pm line 140.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Use of uninitialized value in subroutine entry at /usr/share/perl5/File/BaseDir.pm line 105.
Opening "Sines.mp4" with VLC media player  (video/mp4)
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055e403078260] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f866c004af0] gl gl: Initialized libplacebo v4.192.1 (API v192)
[00007f866ce46220] gl gl: Initialized libplacebo v4.192.1 (API v192)
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[00007f866c5f6540] gl gl: Initialized libplacebo v4.192.1 (API v192) 

然后,当我关闭 VLC 窗口时,相同的视频会用 Chrome 打开。我希望摆脱显示的消息,并且我不希望在关闭 VLC 后用 Chrome 打开视频。尤其是最后一个问题非常烦人。我在 Windows 10 上的 WSL2 上运行,安装了 Ubuntu 22.04。

编辑:我解决了第二个问题xdg-mime default vlc.desktop video/mp4,但是当我关闭 vlc 窗口时我收到一条segmentation fault消息。

相关内容