#!/bin/sh
D=$(mktemp -d)
export XDG_RUNTIME_DIR=$D
rm -rf ~/.local/share/qutebrowser/sessions
sed -i 's/^mainwindow.*//' ~/.local/share/qutebrowser/state
/usr/local/bin/qutebrowser --override-restore --target window "$@"
rm -rf $D
