Commit c3612141 authored by Bastien Nocera's avatar Bastien Nocera
Browse files

data: Remove outdated bug report helper script

It uses Python2, and GStreamer 0.10. Both are obsolete.
parent 855ca9ac
......@@ -3,11 +3,6 @@ SUBDIRS = icons appdata
EXTRA_DIST =
CLEANFILES =
# Bug reporting information script
bugreportdir = $(libexecdir)/totem
bugreport_SCRIPTS = totem-bugreport.py
EXTRA_DIST += $(bugreport_SCRIPTS)
# Man pages
man_MANS = totem.1 totem-video-thumbnailer.1
totem-video-thumbnailer.1: totem-video-thumbnailer.pod
......
......@@ -14,5 +14,4 @@ X-GNOME-Bugzilla-Product=totem
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Bugzilla-OtherBinaries=totem-video-thumbnailer;totem-audio-preview;
X-GNOME-Bugzilla-ExtraInfoScript=@FULL_LIBEXECDIR@/totem/totem-bugreport.py
StartupNotify=true
#!/usr/bin/python
import os
from datetime import datetime
from gi.repository import Gtk
# Get the GStreamer version
if os.system ('gst-typefind-0.10 --version') == 0:
# List the formats of the last files played
last_visited = 0
recent_manager = Gtk.RecentManager.get_default ()
for recent in recent_manager.get_items ():
if recent.has_group ("Totem"):
if recent.get_visited () > last_visited:
last_visited = recent.get_visited ()
last = recent.get_uri_display ()
if last != None:
file_handle = os.popen ('gst-typefind-0.10 "%s"' % (last))
parts = file_handle.read ().split (' ')
date = datetime.fromtimestamp (last_visited)
print 'Listened to a "%s" file on %s' % (parts.pop ().strip (), date.isoformat ())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment