summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Berla <corey@berla.me>2023-01-07 10:56:46 -0800
committerCorey Berla <corey@berla.me>2023-01-07 10:59:30 -0800
commit47a354346d571a6329bec16b2ab2d93ba23a65fb (patch)
tree00a39ae8d00c3d597320bfbfbb71295992842a2f
parent1ed8c9da13933de65a1fffd497d04252f8c1f4f1 (diff)
downloadnautilus-wip/corey/search-popover.tar.gz
mime-actions: Make video audio mime types more comprehensivewip/corey/search-popover
Use the list from totem which presumably is pretty comprehensive. This could have a performance impact on tracker, but it doesn't seem noticeable from my testing. Fixes: https://gitlab.gnome.org/GNOME/nautilus/-/issues/2452
-rw-r--r--src/nautilus-mime-actions.c125
1 files changed, 117 insertions, 8 deletions
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index b9b8d3078..df69e5baa 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -101,7 +101,7 @@ typedef struct
struct
{
char *name;
- char *mimetypes[20];
+ char *mimetypes[75];
} mimetype_groups[] =
{
{
@@ -149,17 +149,73 @@ struct
"application/x-wpg",
NULL}},
{ N_("Music"),
- { "application/ogg",
- "audio/x-vorbis+ogg",
+ { "audio/3gpp",
+ "audio/aac",
"audio/ac3",
+ "audio/AMR",
+ "audio/AMR-WB",
"audio/basic",
+ "audio/dv",
+ "audio/eac3",
+ "audio/flac",
+ "audio/m4a",
"audio/midi",
- "audio/x-flac",
+ "audio/mp1",
+ "audio/mp2",
+ "audio/mp3",
"audio/mp4",
"audio/mpeg",
+ "audio/mpegurl",
+ "audio/mpg",
+ "audio/ogg",
+ "audio/opus",
+ "audio/prs.sid",
+ "audio/scpls",
+ "audio/vnd.rn-realaudio",
+ "audio/wav",
+ "audio/webm",
+ "audio/x-aac",
+ "audio/x-aiff",
+ "audio/x-ape",
+ "audio/x-flac",
+ "audio/x-gsm",
+ "audio/x-it",
+ "audio/x-m4a",
+ "audio/x-m4b",
+ "audio/x-matroska",
+ "audio/x-mod",
+ "audio/x-mp1",
+ "audio/x-mp2",
+ "audio/x-mp3",
+ "audio/x-mpg",
"audio/x-mpeg",
+ "audio/x-mpegurl",
+ "audio/x-ms-asf",
"audio/x-ms-asx",
+ "audio/x-ms-wax",
+ "audio/x-ms-wma",
+ "audio/x-musepack",
+ "audio/x-opus+ogg",
+ "audio/x-pn-aiff",
+ "audio/x-pn-au",
"audio/x-pn-realaudio",
+ "audio/x-pn-realaudio-plugin",
+ "audio/x-pn-wav",
+ "audio/x-pn-windows-acm",
+ "audio/x-realaudio",
+ "audio/x-real-audio",
+ "audio/x-s3m",
+ "audio/x-sbc",
+ "audio/x-scpls",
+ "audio/x-shorten",
+ "audio/x-speex",
+ "audio/x-stm",
+ "audio/x-tta",
+ "audio/x-wav",
+ "audio/x-wavpack",
+ "audio/x-vorbis",
+ "audio/x-vorbis+ogg",
+ "application/x-flac",
NULL}},
{ N_("PDF / PostScript"),
{ "application/pdf",
@@ -213,18 +269,71 @@ struct
{ "text/plain",
NULL}},
{ N_("Video"),
- { "video/mp4",
+ { "application/mxf",
+ "application/ram",
+ "application/sdp",
+ "application/vnd.apple.mpegurl",
+ "application/vnd.ms-asf",
+ "application/vnd.ms-wpl",
+ "application/vnd.rn-realmedia",
+ "application/vnd.rn-realmedia-vbr",
+ "application/x-extension-m4a",
+ "application/x-extension-mp4",
+ "application/x-flash-video",
+ "application/x-matroska",
+ "application/x-netshow-channel",
+ "application/x-quicktimeplayer",
+ "application/x-shorten",
+ "image/vnd.rn-realpix",
+ "image/x-pict",
+ "misc/ultravox",
+ "text/x-google-video-pointer",
+ "video/3gp",
"video/3gpp",
+ "video/3gpp2",
+ "video/dv",
+ "video/divx",
+ "video/fli",
+ "video/flv",
+ "video/mp2t",
+ "video/mp4",
+ "video/mp4v-es",
"video/mpeg",
+ "video/mpeg-system",
+ "video/msvideo",
+ "video/ogg",
"video/quicktime",
"video/vivo",
+ "video/vnd.divx",
+ "video/vnd.mpegurl",
+ "video/vnd.rn-realvideo",
+ "video/vnd.vivo",
+ "video/webm",
+ "video/x-anim",
"video/x-avi",
- "video/x-mng",
+ "video/x-flc",
+ "video/x-fli",
+ "video/x-flic",
+ "video/x-flv",
+ "video/x-m4v",
+ "video/x-matroska",
+ "video/x-mjpeg",
+ "video/x-mpeg",
+ "video/x-mpeg2",
"video/x-ms-asf",
- "video/x-ms-wmv",
+ "video/x-ms-asf-plugin",
+ "video/x-ms-asx",
"video/x-msvideo",
+ "video/x-ms-wm",
+ "video/x-ms-wmv",
+ "video/x-ms-wmx",
+ "video/x-ms-wvx",
"video/x-nsv",
- "video/x-real-video",
+ "video/x-ogm+ogg",
+ "video/x-theora",
+ "video/x-theora+ogg",
+ "video/x-totem-stream",
+ "audio/x-pn-realaudio",
NULL}}
};