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:52:37 +0100 |
commit | e42e1230a10823d1fb94db6075d0cdfbff612c06 (patch) | |
tree | db36fa92f9ef9b2a870ee8ff3385b3e6af3d5d1d /qutebrowser/app.py | |
parent | 384527ce35aaef43c2db84e20fa9cfef8e96341f (diff) | |
download | qutebrowser-e42e1230a10823d1fb94db6075d0cdfbff612c06.tar.gz qutebrowser-e42e1230a10823d1fb94db6075d0cdfbff612c06.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
Diffstat (limited to 'qutebrowser/app.py')
-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) |