GNOME Bugzilla – Bug 781015
Provide terminal with flatpak-builder --run enviroment for debugging with gdb or other tasks
Last modified: 2018-01-11 10:25:08 UTC
Although there is plans to have debugger and different tools to not need the terminal, there is always going to be a case that we need the terminal for some tasks, and even more in this first stage of development of Flatpak integration. For that, would be good to have a way to go directly to the run environment of the app, instead of finding where the builddir is (i.e. ~/.cache/gnome-builder/flatpak/staging/Nautilus/flatpak:org.gnome.Platform-x86_64-master) and doing $ flatpak-builder --run ~/.cache/gnome-builder/flatpak/staging/nautilus/flatpak:org.gnome.Platform-x86_64-master ~/Projects/Nautilus/org.gnome.Nautilus.json sh manually to be able to run gdb or other tools with the binary. This is important for newcomers initiative, not much for them, but for us to be able to give them a way to shortcome the missing functionality, debug, gotchas and other issues we will (fairly) find on the upcoming months.
Nightly and the stable branch (gnome-3-24) should both be using flatpak-builder --run now. However, you will probably still need to export DISPLAY=:0 when using ctrl+alt+shift+t until we have another solution.
I just tried and I have the same issues as before (not being able to access some host system folders or others issues). FWIW as mentioned I can run manually: $ flatpak-builder --run ~/.cache/gnome-builder/flatpak/staging/nautilus/flatpak:org.gnome.Platform-x86_64-master ~/Projects/Nautilus/org.gnome.Nautilus.json sh In a regular terminal inside builder and it just works. However the ctrl+shift+alt+t doesn't behave in this way for some reason, and it causes the permission issues.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/213.