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
commit 159e2bb734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.