From e9608a6aeaa102ea7659743cd70aa09fe5ea9307 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 6 Sep 2015 18:06:03 +0200 Subject: [PATCH] Add qutebrowser version to IPC data. See #909. --- qutebrowser/misc/ipc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qutebrowser/misc/ipc.py b/qutebrowser/misc/ipc.py index 49c5e1d7a..8a6ee0f65 100644 --- a/qutebrowser/misc/ipc.py +++ b/qutebrowser/misc/ipc.py @@ -29,6 +29,7 @@ import hashlib from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject from PyQt5.QtNetwork import QLocalSocket, QLocalServer, QAbstractSocket +import qutebrowser from qutebrowser.utils import log, usertypes, error, objreg @@ -306,7 +307,7 @@ def send_to_running_instance(socketname, command, *, socket=None): connected = socket.waitForConnected(100) if connected: log.ipc.info("Opening in existing instance") - json_data = {'args': command} + json_data = {'args': command, 'version': qutebrowser.__version__} try: cwd = os.getcwd() except OSError: