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.
This commit is contained in:
Jehan 2021-03-28 17:18:52 +02:00
parent 21add2c994
commit f3ee39c3c4

View file

@ -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)