#!/usr/bin/env sh
#
+# See https://github.com/qutebrowser/qutebrowser/issues/572
# Thanks https://github.com/ayekat/dotfiles/blob/master/bin/qutebrowser
# Adapted to be sourced from another wrapper
# using the argument to set up the following directory structure and symbolic
# links:
#
-# $XDG_RUNTIME_DIR/qutebrowser/$session/cache → $XDG_CACHE_HOME/qutebrowser/$session
-# $XDG_RUNTIME_DIR/qutebrowser/$session/data → $XDG_DATA_HOME/qutebrowser/$session
-# $XDG_RUNTIME_DIR/qutebrowser/$session/config → $XDG_CONFIG_HOME/qutebrowser
+# $XDG_CACHE_HOME/qutebrowser/$session/cache → $XDG_CACHE_HOME/qutebrowser/$session
+# $XDG_DATA_HOME/qutebrowser/$session/data → $XDG_DATA_HOME/qutebrowser/$session
+# $XDG_CONFIG_HOME/qutebrowser/$session/config → $XDG_CONFIG_HOME/qutebrowser
# $XDG_RUNTIME_DIR/qutebrowser/$session/runtime (no symlink, regular directory)
#
# We then specify $XDG_RUNTIME_DIR/qutebrowser/$session as a --basedir, and the
#export LD_LIBRARY_PATH=/usr/lib/openssl-1.0
#export LD_LIBRARY_PATH=/usr/lib/`arch`-linux-gnu/openssl-1.0.2
OPTS="--qt-flag disable-reading-from-canvas"
- source `dirname $0`/qutebrowser-exec
+ source `dirname $0`/lib/qutebrowser-exec
$HOME/apps/qutebrowser/dist/.venv/bin/python3 -m qutebrowser $OPTS "$@"
else
# Go to project folder