[pitivi] bundle: Do not try to launch yelp if in a bundle



commit 49ed153eb62d9b557c42d1b06957e9d5feb47a9d
Author: Thibault Saunier <tsaunier gnome org>
Date:   Thu Mar 27 10:06:56 2014 +0100

    bundle: Do not try to launch yelp if in a bundle
    
    As it will fail

 pitivi/utils/misc.py |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils/misc.py b/pitivi/utils/misc.py
index e1a7f1b..1abf7eb 100644
--- a/pitivi/utils/misc.py
+++ b/pitivi/utils/misc.py
@@ -398,7 +398,12 @@ def show_user_manual(page=None):
     Optional: for contextual help, a page ID can be specified.
     """
     time_now = int(time.time())
-    for uri in (APPMANUALURL_OFFLINE, APPMANUALURL_ONLINE):
+    if "APPDIR" in os.environ:
+        uris = (APPMANUALURL_ONLINE,)
+    else:
+        uris = (APPMANUALURL_OFFLINE, APPMANUALURL_ONLINE)
+
+    for uri in uris:
         if page is not None:
             uri += "#" + page
         try:


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