Permalink
Browse files

Register the text/x-xptv mime type, and set pitivi as its default app.

  • Loading branch information...
1 parent dfb2877 commit 74a33863295988d3584917453cc698208e68bcbd @alessandrod alessandrod committed with bilboed Apr 30, 2009
Showing with 15 additions and 0 deletions.
  1. +3 −0 Makefile.am
  2. +1 −0 pitivi.desktop.in
  3. +11 −0 pitivi.xml
View
@@ -8,6 +8,9 @@ desktop_DATA = pitivi.desktop
icondir = $(datadir)/pixmaps
icon_DATA = pitivi.png
+mimedir = $(datadir)/mime/packages
+mime_DATA = pitivi.xml
+
EXTRA_DIST = \
pitivi.spec \
pitivi.spec.in \
View
@@ -7,6 +7,7 @@ Exec=pitivi
Terminal=false
Type=Application
Icon=pitivi.png
+MimeType=text/x-xptv
Categories=GNOME;GTK;Application;AudioVideo;X-Ximian-Main;X-Red-Hat-Base;
StartupNotify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
View
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
+ <mime-type type="text/x-xptv">
+ <sub-class-of type="text/plain"/>
+ <comment>PiTiVi Project File</comment>
+ <glob pattern="*.xptv"/>
+ <magic priority="20">
+ <match value="&lt;pitivi" type="string" offset="0"/>
+ </magic>
+ </mime-type>
+</mime-info>

0 comments on commit 74a3386

Please sign in to comment.