[other] 视频默认打开方式无法更改
Tofloor
poster avatar
浩然
deepin
2023-07-29 16:01
Author

我想把视频默认打开方式更改为potplayer,在potplayer程序中也设置了视频关联,可是打开视频的程序还是系统自带的。在视频上右键选择打开方式,里面没有potplayer选项,然后添加默认程序,在usr-share-applications中找到了,选择确定,仍然不行。

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-07-29 16:06
#1

系统版本是20.9还是23?

Reply View the author
浩然
deepin
2023-07-29 16:10
#2
阿尼樱奈奈

系统版本是20.9还是23?

社区版20.9

Reply View the author
安洛
deepin
2023-07-29 17:53
#3

wine程序默认打开经常有问题。

把你装的potplayer的desktop文件内容发出来看看。

Reply View the author
浩然
deepin
2023-07-29 20:48
#4
安洛

wine程序默认打开经常有问题。

把你装的potplayer的desktop文件内容发出来看看。

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=Deepin WINE Team
Categories=AudioVideo;Player;
Icon=tv.potplayer.potplayer
Exec="/opt/apps/tv.potplayer.potplayer/files/run.sh" -u %u
Name=PotPlayer
Name[zh_CN]=PotPlayer
Comment=PotPlayer是在PC上播放音乐和视频的绝佳选择。虽然有很多第三方媒体播放器,如VLC和KMPlayer,但没有一款能提供像PotPlayer那样多的功能。虽然很多人更喜欢流式播放视频和音乐,但劣质的互联网连接可能会引发问题。在这种情况下,PotPlayer for Windows允许您收听音乐和观看本地存储在PC上的视频。它支持多种文件类型,是PC用户的最佳选择。
StartupWMClass=PotPlayerMini64.exe
MimeType=

Reply View the author
安洛
deepin
2023-07-30 00:54
#5
浩然

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Type=Application
X-Created-By=Deepin WINE Team
Categories=AudioVideo;Player;
Icon=tv.potplayer.potplayer
Exec="/opt/apps/tv.potplayer.potplayer/files/run.sh" -u %u
Name=PotPlayer
Name[zh_CN]=PotPlayer
Comment=PotPlayer是在PC上播放音乐和视频的绝佳选择。虽然有很多第三方媒体播放器,如VLC和KMPlayer,但没有一款能提供像PotPlayer那样多的功能。虽然很多人更喜欢流式播放视频和音乐,但劣质的互联网连接可能会引发问题。在这种情况下,PotPlayer for Windows允许您收听音乐和观看本地存储在PC上的视频。它支持多种文件类型,是PC用户的最佳选择。
StartupWMClass=PotPlayerMini64.exe
MimeType=

看起来也没有很大问题……

有可能改动的地方一个是Exec=最后的%u可能改成%U,另外就是MimeType可能改成:

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;

如果改了这两个地方还不行那就应该是这个wine打包的有问题,需要去向维护者反馈。

Reply View the author
Ghost
deepin
2024-04-26 16:16
#6

系统23 b3 安装了应用商店的potplayer后,没有办法将默认播放修改

系统环境

V 23 B 2

''' #!/usr/bin/env xdg-open[Desktop Entry]
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=tv.potplayer.potplayer
Encoding=UTF-8
Type=Application
X-Created-By=Deepin WINE Team
Categories=AudioVideo;Player;
Icon=tv.potplayer.potplayer
Exec="/opt/apps/tv.potplayer.potplayer/files/run.sh" -u %u
Name=PotPlayer
Name[zh_CN]=PotPlayer
Comment=PotPlayer是在PC上播放音乐和视频的绝佳选择。虽然有很多第三方媒体播放器,如VLC和KMPlayer,但没有一款能提供像PotPlayer那样多的功能。虽然很多人更喜欢流式播放视频和音乐,但劣质的互联网连接可能会引发问题。在这种情况下,PotPlayer for Windows允许您收听音乐和观看本地存储在PC上的视频。它支持多种文件类型,是PC用户的最佳选择。
StartupWMClass=PotPlayerMini64.exe
MimeType=

同样的问题使用指定找不到potplayer程序

image.png

Reply View the author