flatpak: Build commands as lists instead of strings (#269)

Using a list ensures that all subprocess arguments are correctly
escaped. By building strings and then calling .split(), potential
arguments with a space will be incorrectly split over two arguments.
When a string is needed for presentation, join to the list to build the
string.
This commit is contained in:
Jon Dufresne
2020-05-10 05:46:10 -07:00
committed by GitHub
parent 06769c4e69
commit 159e2bb734
3 changed files with 16 additions and 18 deletions

View File

@@ -0,0 +1,2 @@
bugfixes:
- flatpak and flatpak_remote - fix command line construction to build commands as lists instead of strings.