diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-02-03 18:52:37 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-02-03 18:56:04 +0100 |
commit | 03217f314d4769f4854b8c1d8df1daeb01f6efb2 (patch) | |
tree | fcfeff691d43fbcaf078c328f776317f32277443 | |
parent | 624a35fa74d266e4e2b4f81be6110eca20a76e9e (diff) | |
download | qutebrowser-03217f314d4769f4854b8c1d8df1daeb01f6efb2.tar.gz qutebrowser-03217f314d4769f4854b8c1d8df1daeb01f6efb2.zip |
Handle a single empty startup argument
When using open_url_in_instance.sh, it runs qutebrowser passing a single
empty argument to it. This doesn't properly open a new window, but opens
a window without any tabs instead. Interacting with that will then lead
to a RegistryUnavailableError.
We now special-case that behavior, though there might be a more involved
proper fix for "" handling needed at a later point.
Fixes #6122
(cherry picked from commit e42e1230a10823d1fb94db6075d0cdfbff612c06)
-rw-r--r-- | qutebrowser/app.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/app.py b/qutebrowser/app.py index f540a0464..2e61bcdbb 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -259,7 +259,7 @@ def process_pos_args(args, via_ipc=False, cwd=None, target_arg=None): win_id: Optional[int] = None - if via_ipc and not args: + if via_ipc and (not args or args == ['']): win_id = mainwindow.get_window(via_ipc=via_ipc, target=new_window_target) _open_startpage(win_id) |