[pitivi] docs: Update documentation to run in gdb



commit 4efe3193fc631e003c2e9a61dfc0f715625d699c
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue Jun 27 09:41:33 2017 -0400

    docs: Update documentation to run in gdb
    
    Handling the case where using is actually using Pitivi development
    environment and avoid the need to update when we bump gnome SDK
    dependency version.

 docs/Bug_reporting.md |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/docs/Bug_reporting.md b/docs/Bug_reporting.md
index 2bb5cd9..526346d 100644
--- a/docs/Bug_reporting.md
+++ b/docs/Bug_reporting.md
@@ -82,23 +82,29 @@ it would be good to provide a **stack trace**.
 
 ### When running with Flatpak
 
-Make sure you have the GNOME Sdk and Debug symbols installed:
+1. Make sure you have the GNOME Sdk and Debug symbols installed:
 
 ```
-GNOME_REPO=$(flatpak remote-list --user -d | grep "http://sdk.gnome.org/repo/"; | awk '{ print $1 }') && \
-flatpak install --user $GNOME_REPO org.gnome.Sdk 3.20; \
-flatpak install --user $GNOME_REPO org.gnome.Sdk.Debug 3.20; \
-flatpak install --user $GNOME_REPO org.gnome.Sdk 3.22; \
-flatpak install --user $GNOME_REPO org.gnome.Sdk.Debug 3.22
+GNOME_REPO=$(flatpak info org.gnome.Platform//3.24 | grep Origin | awk '{ print $2 }')
+for i in $(flatpak list | grep org.pitivi.Pitivi | awk '{ print $1 }'); do
+  flatpak install --user $GNOME_REPO $(flatpak info $i |grep Runtime |awk '{ print $2 }' |sed 
s/Platform/Sdk/)
+  flatpak install --user $GNOME_REPO $(flatpak info $i |grep Runtime |awk '{ print $2 }' |sed 
s/Platform/Sdk.Debug/)
+done
 ```
 
-Start a shell in the Pitivi bundle environment
+2. Start a shell in the Pitivi bundle environment
+
+(If developping pitivi, make sure to be in the environment before running)
 
 ```
-flatpak run -d --command=bash org.pitivi.Pitivi
+if type ptvenv; then
+  ptvenv
+else
+  flatpak run -d --command=bash org.pitivi.Pitivi
+fi
 ```
 
-Start Pitivi inside gdb
+3. Start Pitivi inside gdb
 
 ```
 gdb python3 -ex 'run /app/bin/pitivi


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