Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Sep 2010 19:17:56 GMT
From:      Kuan-Chung Chiu <buganini@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/150361: [patch] provide script to bind with nautilus for multimedia/ffmpegthumbnailer
Message-ID:  <201009071917.o87JHuHH018239@www.freebsd.org>
Resent-Message-ID: <201009071920.o87JK41i045896@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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@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
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009071917.o87JHuHH018239>