daemon: Change the working dir to our homedir.

This commit is contained in:
Damir Jelić 2019-04-18 15:53:25 +02:00
parent 3c09dbc80a
commit 2bb6ac7196

View File

@ -746,6 +746,9 @@ def start(
app.on_shutdown.append(proxy.shutdown)
app.on_shutdown.append(kill_glib)
home = os.path.expanduser("~")
os.chdir(home)
web.run_app(app, host=str(listen_address), port=listen_port)