Disabling thumbnailing for different types of files in Ubuntu

Disable thumbnailing for video files

gsettings set org.gnome.desktop.thumbnailers disable "['application/mxf', 'application/ogg', 'application/ram', 'application/sdp', 'application/vnd.apple.mpegurl', 'application/vnd.ms-asf', 'application/vnd.ms-wpl', 'application/vnd.rn-realmedia', 'application/x-extension-m4a', 'application/x-extension-mp4', 'application/x-flash-video', 'application/x-matroska', 'application/x-netshow-channel', 'application/x-ogg', '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/dv', 'video/divx', 'video/fli', 'video/flv', 'video/mp2t', 'video/mp4', 'video/mp4v-es', 'video/mpeg', '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-flc', 'video/x-fli', 'video/x-flic', 'video/x-flv', 'video/x-m4v', 'video/x-matroska', 'video/x-mpeg', 'video/x-mpeg2', 'video/x-ms-asf', '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-ogm+ogg', 'video/x-theora+ogg', 'video/x-totem-stream']"

Disable thumbnailing for audio files

gsettings set org.gnome.desktop.thumbnailers disable "['application/mxf', 'application/ogg', 'application/ram', 'application/sdp', 'application/smil', 'application/smil+xml', 'application/vnd.apple.mpegurl', 'application/vnd.ms-asf', 'application/vnd.ms-wpl', 'application/vnd.rn-realmedia', 'application/x-extension-m4a', 'application/x-extension-mp4', 'application/x-flac', 'application/x-ogg', 'application/x-shorten', 'application/x-smil', 'application/xspf+xml', 'audio/3gpp', 'audio/ac3', 'audio/AMR', 'audio/AMR-WB', 'audio/basic', 'audio/flac', 'audio/midi', 'audio/mp2', 'audio/mp4', 'audio/mpeg', 'audio/mpegurl', 'audio/ogg', 'audio/prs.sid', 'audio/vnd.rn-realaudio', 'audio/x-aiff', 'audio/x-ape', 'audio/x-flac', 'audio/x-gsm', 'audio/x-it', 'audio/x-m4a', 'audio/x-matroska', 'audio/x-mod', 'audio/x-mp3', '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-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-speex', 'audio/x-stm', 'audio/x-tta', 'audio/x-wav', 'audio/x-wavpack', 'audio/x-vorbis', 'audio/x-vorbis+ogg', 'audio/x-xm', 'misc/ultravox']"

Disable thumbnailing for MS Office documents

gsettings set org.gnome.desktop.thumbnailers disable "['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/msword', 'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.presentationml.presentation']"

Do it yourselr

You can disable thumbnailing by simple command:

gsettings set org.gnome.desktop.thumbnailers disable "['name-of-filetype']"

Get filetypes by grep in /usr/share/thumbnailers. Example:

cd /usr/share/thumbnailers && grep 'video' *

will list and highlight all video types:

Screenshot from 2015-12-02 11-54-14

Than, copy it and just replace all «;» sumbols to «‘, ‘». Don’t forget add quotation and brackets at start and end.

You’ll get like this:

«[‘application/mxf’, ‘application/ogg’, ‘application/ram’, ‘application/sdp’, ‘application/vnd.apple.mpegurl’, ‘application/vnd.ms-asf’, ‘application/vnd.ms-wpl’, ‘application/vnd.rn-realmedia’, ‘application/x-extension-m4a’, ‘application/x-extension-mp4’, ‘application/x-flash-video’, ‘application/x-matroska’, ‘application/x-netshow-channel’, ‘application/x-ogg’, ‘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/dv’, ‘video/divx’, ‘video/fli’, ‘video/flv’, ‘video/mp2t’, ‘video/mp4’, ‘video/mp4v-es’, ‘video/mpeg’, ‘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-flc’, ‘video/x-fli’, ‘video/x-flic’, ‘video/x-flv’, ‘video/x-m4v’, ‘video/x-matroska’, ‘video/x-mpeg’, ‘video/x-mpeg2’, ‘video/x-ms-asf’, ‘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-ogm+ogg’, ‘video/x-theora+ogg’, ‘video/x-totem-stream’]»

Add «gsettings set org.gnome.desktop.thumbnailers disable» at start of string and create proper command to disable thumbnailing for all of this filetypes.

Also, you can get audio and video formats here: https://github.com/GNOME/totem/blob/11b9939e0f652ffeca6295503d5b5df4bedf33ca/data/mime-type-list.txt

 

Реклама

Добавить комментарий

Заполните поля или щелкните по значку, чтобы оставить свой комментарий:

Логотип WordPress.com

Для комментария используется ваша учётная запись WordPress.com. Выход / Изменить )

Фотография Twitter

Для комментария используется ваша учётная запись Twitter. Выход / Изменить )

Фотография Facebook

Для комментария используется ваша учётная запись Facebook. Выход / Изменить )

Google+ photo

Для комментария используется ваша учётная запись Google+. Выход / Изменить )

Connecting to %s