aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ffmpegthumbnailer/files/bind-nautilus.sh')
-rw-r--r--multimedia/ffmpegthumbnailer/files/bind-nautilus.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh b/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
new file mode 100644
index 000000000000..327f5db5bb83
--- /dev/null
+++ b/multimedia/ffmpegthumbnailer/files/bind-nautilus.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Use this script to bind ffmpegthumbnailer to nautilus.
+
+type="application@x-extension-webm video/3gpp video/3gpp2 video@avi \
+video@flv video@mkv video@mp4 video@mpeg video@ogg video@quicktime video@webm \
+video@x-avi video@x-flv video@x-m4v video@x-matroska video@x-mkv video@x-mp4 \
+video@x-mpeg video@x-ms-asf video@x-ms-wmv video@x-ms-wvx video@x-msvideo \
+video@x-msvideo@avi video@x-theora@ogg video@x-theora@ogv video@x-webm"
+
+cmd="/usr/bin/ffmpegthumbnailer -s %s -i %i -o %o -f"
+
+for i in $type; do
+gconftool-2 -s "/desktop/gnome/thumbnailers/$i/command" -t string "$cmd"
+gconftool-2 -s "/desktop/gnome/thumbnailers/$i/enable" -t boolean "true"
+done