From 9f94f28181333c8023ea96cfd10d67e60dc70491 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 19 Jun 2017 09:14:03 +0200 Subject: [PATCH] Use :memory: for an in-memory database Using an empty string for the same purpose only started working in some recent-ish Qt/sqlite/? version, so using --version failed on Ubuntu Trusty. --- qutebrowser/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index a8fd7ad54..4eefb38d8 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -85,7 +85,7 @@ def run(args): if args.version: # we need to init sql to print the sql version # we can use an in-memory database as we just want to query the version - sql.init('') + sql.init(':memory:') print(version.version()) sys.exit(usertypes.Exit.ok)