Skip to content

Commit

Permalink
Register the text/x-xptv mime type, and set pitivi as its default app.
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrod authored and bilboed committed Apr 30, 2009
1 parent dfb2877 commit 74a3386
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions pitivi.desktop.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions pitivi.xml
Original file line number Diff line number Diff line change
@@ -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.