MightyCreak / diffuse

Diffuse is a graphical tool for comparing and merging text files. It can retrieve files for comparison from Bazaar, CVS, Darcs, Git, Mercurial, Monotone, RCS, Subversion, and SVK repositories.
http://mightycreak.github.io/diffuse/
GNU General Public License v2.0
265 stars 45 forks source link

Fix subprocess call from within Flatpak #105

Closed MightyCreak closed 2 years ago

MightyCreak commented 2 years ago

The solution (for now) is to add the Flatpak package the privilege to call anything on the host (thanks to --talk-name=org.freedesktop.Flatpak in the manifest and calling the subprocess with flatpak-spawn --host <cmd>

For that I had to add a boolean option, use_flatpak, with adds flatpak-spawn --host to any command line when it's enabled.

Fixes #103