From f3ee39c3c47c1d0f975d818aa53e60ae867fbaad Mon Sep 17 00:00:00 2001 From: Jehan Date: Sun, 28 Mar 2021 17:18:52 +0200 Subject: [PATCH] devel-docs: quick command to get the right flatpak runtime version. For debugging the flatpak, we often ask people to install the SDK and debug data. Yet there might be several branches of the GNOME SDK installed at once, hence flatpak will ask which version to install. This quick command can be copy-pasted as it's a way to detect which runtime is being used by your flatpak-ed GIMP. --- devel-docs/debugging-tips.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devel-docs/debugging-tips.txt b/devel-docs/debugging-tips.txt index 80c8c74780..a6a86d2f18 100644 --- a/devel-docs/debugging-tips.txt +++ b/devel-docs/debugging-tips.txt @@ -160,7 +160,8 @@ Here is how you can find the proper code line in the Flatpak (provided you use the right flatpak commit): ``` -$ flatpak install flathub org.gimp.GIMP.Debug org.gnome.Sdk.Debug +$ RUNTIME_VERSION=$(flatpak run org.gimp.GIMP//stable -v |grep runtime=runtime/org.gnome.Platform/ |sed 's$runtime=runtime/org.gnome.Platform/$$') +$ flatpak install flathub org.gimp.GIMP.Debug org.gnome.Sdk/$RUNTIME_VERSION org.gnome.Sdk.Debug/$RUNTIME_VERSION $ flatpak run --devel --command=bash org.gimp.GIMP (flatpak) $ gdb /app/bin/gimp-2.10 (gdb) info line *(file_open_image+0x4e8)