From 03217f314d4769f4854b8c1d8df1daeb01f6efb2 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 3 Feb 2021 18:52:37 +0100 Subject: 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) --- qutebrowser/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-54-g00ecf