[vlc-commits] vlc-thumb: works also with gnome 3

Rafaël Carré git at videolan.org
Thu Nov 3 03:26:46 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Nov  2 22:26:16 2011 -0400| [295594f691159ac6fc47112c354d8f4ba9641a05] | committer: Rafaël Carré

vlc-thumb: works also with gnome 3

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=295594f691159ac6fc47112c354d8f4ba9641a05
---

 doc/libvlc/vlc-thumb.c           |    5 ++++-
 doc/libvlc/vlc-thumb.thumbnailer |    4 ++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/doc/libvlc/vlc-thumb.c b/doc/libvlc/vlc-thumb.c
index 1a0365e..b9e119d 100644
--- a/doc/libvlc/vlc-thumb.c
+++ b/doc/libvlc/vlc-thumb.c
@@ -5,7 +5,10 @@
 /* Works with : libvlc 1.2.0
    gcc -pedantic -Wall -Werror -Wextra `pkg-config --cflags --libs libvlc` -lpthread
 
-  # to register the thumbnailer:
+  # to register the thumbnailer on gnome 3.x:
+  cp vlc-thumb.thumbnailer /usr/share/thumbnailers
+
+  # to register the thumbnailer on gnome 2.x:
   list=`grep ^Mime vlc.desktop|cut -d= -f2-|sed -e s/";"/\\\n/g -e s,/,@,g`
   vid=`echo $mimes|grep ^vid`
   for i in $vid
diff --git a/doc/libvlc/vlc-thumb.thumbnailer b/doc/libvlc/vlc-thumb.thumbnailer
new file mode 100644
index 0000000..58f7e4c
--- /dev/null
+++ b/doc/libvlc/vlc-thumb.thumbnailer
@@ -0,0 +1,4 @@
+[Thumbnailer Entry]
+TryExec=vlc-thumb
+Exec=vlc-thumb -s %s %u %o
+MimeType=video/dv;video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;video/x-flv;video/vnd.rn-realvideo;video/mp4;video/mp4v-es;video/mp2t;application/ogg;application/x-ogg;video/x-ogm+ogg;application/x-matroska;video/x-matroska;video/webm;application/vnd.rn-realmedia;image/vnd.rn-realpix;



More information about the vlc-commits mailing list