ports/150361: [patch] provide script to bind with nautilus for multimedia/ffmpegthumbnailer
Kuan-Chung Chiu
buganini at gmail.com
Tue Sep 7 19:20:05 UTC 2010
>Number: 150361
>Category: ports
>Synopsis: [patch] provide script to bind with nautilus for multimedia/ffmpegthumbnailer
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 07 19:20:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Kuan-Chung Chiu
>Release: 9.0-CURRENT
>Organization:
N/A
>Environment:
FreeBSD Elizabeth.twbbs.org 9.0-CURRENT FreeBSD 9.0-CURRENT #8 r212185: Sun Sep 5 04:42:26 CST 2010 root at elizabeth.twbbs.org:/usr/obj/usr/src/sys/ELIZABETH amd64
>Description:
Provide a script that user can easily bind ffmpegthumbnailer with nautilus
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff -ruN ffmpegthumbnailer.orig/Makefile ffmpegthumbnailer/Makefile
--- ffmpegthumbnailer.orig/Makefile 2010-09-08 02:56:40.000000000 +0800
+++ ffmpegthumbnailer/Makefile 2010-09-08 03:03:53.000000000 +0800
@@ -29,4 +29,7 @@
MAN1= ffmpegthumbnailer.1
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
diff -ruN ffmpegthumbnailer.orig/files/bind-nautilus.sh ffmpegthumbnailer/files/bind-nautilus.sh
--- ffmpegthumbnailer.orig/files/bind-nautilus.sh 1970-01-01 08:00:00.000000000 +0800
+++ ffmpegthumbnailer/files/bind-nautilus.sh 2010-09-08 03:13:45.000000000 +0800
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+type="application at x-extension-webm video/3gpp video/3gpp2 video at avi \
+video at flv video at mkv video at mp4 video at mpeg video at ogg video at quicktime video at webm \
+video at x-avi video at x-flv video at x-m4v video at x-matroska video at x-mkv video at x-mp4 \
+video at x-mpeg video at x-ms-asf video at x-ms-wmv video at x-ms-wvx video at x-msvideo \
+video at x-msvideo@avi video at x-theora@ogg video at x-theora@ogv video at 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
diff -ruN ffmpegthumbnailer.orig/pkg-message ffmpegthumbnailer/pkg-message
--- ffmpegthumbnailer.orig/pkg-message 1970-01-01 08:00:00.000000000 +0800
+++ ffmpegthumbnailer/pkg-message 2010-09-08 03:05:56.000000000 +0800
@@ -0,0 +1,3 @@
+For Gnome user:
+ If you wish to bind this with nautilus, see files/bind-nautilus.sh
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list