[pitivi/ges: 129/287] bin: Update pitivi.in to check for GES



commit 4c1b2f9b1c7842f3a7e4b4e7b7275c937d3ecbb7
Author: Thibault Saunier <thibault saunier collabora com>
Date:   Mon Dec 26 13:01:45 2011 +0100

    bin: Update pitivi.in to check for GES

 bin/pitivi.in |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/bin/pitivi.in b/bin/pitivi.in
index f193c64..7c056b0 100644
--- a/bin/pitivi.in
+++ b/bin/pitivi.in
@@ -93,7 +93,7 @@ def _add_pitivi_path():
             # ld caches LD_LIBRARY_PATH at startup so we need to execv() here. LALA.
             jump_through_hoops()
 
-def _init_gobject_gtk_gst():
+def _init_gobject_gtk_gst_ges():
     global localedir
     try:
         import pygtk
@@ -118,6 +118,15 @@ def _init_gobject_gtk_gst():
     except ImportError:
         raise SystemExit("Gst-Python couldn't be found!")
 
+    try:
+        import ges
+    except ImportError:
+        raise SystemExit("GStreamer Editing Services couldn't be found!")
+
+    # Require GES 0.10
+    if ges.version()[1] != 10:
+        raise SystemExit("GStreamer Editing Services couldn't be found!")
+
 def _run_pitivi():
     import pitivi.application as ptv
 
@@ -130,7 +139,7 @@ def _run_pitivi():
 
 try:
     _add_pitivi_path()
-    _init_gobject_gtk_gst()
+    _init_gobject_gtk_gst_ges()
     _run_pitivi()
 except KeyboardInterrupt:
     print "Interrupted by user!"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]