summaryrefslogtreecommitdiff
path: root/qutebrowser
diff options
context:
space:
mode:
author$MYNAME <$MYGITEMAIL>2021-03-03 14:03:03 +0100
committer$MYNAME <$MYGITEMAIL>2021-03-03 14:03:03 +0100
commit82ba01647b9000b5422f6f77e874acdf4f5a511d (patch)
tree9e86d557fd1fb72660242a4f0f29d7ad0cfcaac2 /qutebrowser
parent18340ada86cc752cc8f90b1c44ff199993876885 (diff)
downloadqutebrowser-82ba01647b9000b5422f6f77e874acdf4f5a511d.tar.gz
qutebrowser-82ba01647b9000b5422f6f77e874acdf4f5a511d.zip
Better handling of filepicker commands, updated test
Diffstat (limited to 'qutebrowser')
-rw-r--r--qutebrowser/browser/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/browser/shared.py b/qutebrowser/browser/shared.py
index 643273f20..19048f88e 100644
--- a/qutebrowser/browser/shared.py
+++ b/qutebrowser/browser/shared.py
@@ -359,7 +359,7 @@ def choose_file(multiple: bool) -> List[str]:
command = config.val.fileselect.multiple_files.command
else:
command = config.val.fileselect.single_file.command
- use_tmp_file = '{}' in command
+ use_tmp_file = any('{}' in arg for arg in command[1:])
if use_tmp_file:
handle = tempfile.NamedTemporaryFile(
prefix='qutebrowser-fileselect-',