Add qutebrowser version to IPC data.

See #909.
This commit is contained in:
Florian Bruhin 2015-09-06 18:06:03 +02:00
parent 1832d44da1
commit e9608a6aea

View File

@ -29,6 +29,7 @@ import hashlib
from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject from PyQt5.QtCore import pyqtSignal, pyqtSlot, QObject
from PyQt5.QtNetwork import QLocalSocket, QLocalServer, QAbstractSocket from PyQt5.QtNetwork import QLocalSocket, QLocalServer, QAbstractSocket
import qutebrowser
from qutebrowser.utils import log, usertypes, error, objreg 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) connected = socket.waitForConnected(100)
if connected: if connected:
log.ipc.info("Opening in existing instance") log.ipc.info("Opening in existing instance")
json_data = {'args': command} json_data = {'args': command, 'version': qutebrowser.__version__}
try: try:
cwd = os.getcwd() cwd = os.getcwd()
except OSError: except OSError: