summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-02-03 18:52:37 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-02-03 18:56:04 +0100
commit03217f314d4769f4854b8c1d8df1daeb01f6efb2 (patch)
treefcfeff691d43fbcaf078c328f776317f32277443
parent624a35fa74d266e4e2b4f81be6110eca20a76e9e (diff)
downloadqutebrowser-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.py2
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)