On 19 August 2013 23:42, Suvayu Ali <fatkasuvayu+linux@xxxxxxxxx> wrote:
You can get a list to put in mimeapps.list under [Added Associations] using something like this hack (remove the last "| grep video" to get a list of all the mimetypes vlc supports):
$ grep MimeType /usr/share/applications/vlc.desktop | perl -p -e 's/MimeType=//' | perl -p -e 's/;/=vlc.desktop;\n/g' | grep video
video/dv=vlc.desktop;
video/mpeg=vlc.desktop;
video/x-mpeg=vlc.desktop;
video/msvideo=vlc.desktop;
video/quicktime=vlc.desktop;
video/x-anim=vlc.desktop;
video/x-avi=vlc.desktop;
video/x-ms-asf=vlc.desktop;
video/x-ms-wmv=vlc.desktop;
video/x-msvideo=vlc.desktop;
video/x-nsv=vlc.desktop;
video/x-flc=vlc.desktop;
video/x-fli=vlc.desktop;
video/x-flv=vlc.desktop;
video/vnd.rn-realvideo=vlc.desktop;
video/mp4=vlc.desktop;
video/mp4v-es=vlc.desktop;
video/mp2t=vlc.desktop;
video/x-ogm+ogg=vlc.desktop;
video/x-matroska=vlc.desktop;
video/webm=vlc.desktop;
x-content/video-vcd=vlc.desktop;
x-content/video-svcd=vlc.desktop;
x-content/video-dvd=vlc.desktop;
On Mon, Aug 19, 2013 at 07:54:05PM +0200, poma wrote:
> On 19.08.2013 17:24, Suvayu Ali wrote:
> >
> > As you can see, you have to repeat this for all file types. It would be
> > simpler if you could just say 'video/*', but I don't think you can.
> >
> > If someone knows an easier way to add a class of files in one go, I
> > would be very interested to know.
> >
> > Hope this helps,
> >
[....]
However if you tell me mimeapps.list does support globs, I'll shut up.
Cheers,
--
Suvayu
Open source is the future. It sets us free.
You can get a list to put in mimeapps.list under [Added Associations] using something like this hack (remove the last "| grep video" to get a list of all the mimetypes vlc supports):
$ grep MimeType /usr/share/applications/vlc.desktop | perl -p -e 's/MimeType=//' | perl -p -e 's/;/=vlc.desktop;\n/g' | grep video
video/dv=vlc.desktop;
video/mpeg=vlc.desktop;
video/x-mpeg=vlc.desktop;
video/msvideo=vlc.desktop;
video/quicktime=vlc.desktop;
video/x-anim=vlc.desktop;
video/x-avi=vlc.desktop;
video/x-ms-asf=vlc.desktop;
video/x-ms-wmv=vlc.desktop;
video/x-msvideo=vlc.desktop;
video/x-nsv=vlc.desktop;
video/x-flc=vlc.desktop;
video/x-fli=vlc.desktop;
video/x-flv=vlc.desktop;
video/vnd.rn-realvideo=vlc.desktop;
video/mp4=vlc.desktop;
video/mp4v-es=vlc.desktop;
video/mp2t=vlc.desktop;
video/x-ogm+ogg=vlc.desktop;
video/x-matroska=vlc.desktop;
video/webm=vlc.desktop;
x-content/video-vcd=vlc.desktop;
x-content/video-svcd=vlc.desktop;
x-content/video-dvd=vlc.desktop;
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org