From 4b51ddb6275a6ac1d02cd4f03d8d789c93676988 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 22 Oct 2020 17:13:59 +0200 Subject: [PATCH] Manage differents location for qutebrowser bin --- qutebrowser | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/qutebrowser b/qutebrowser index 3f2a7da..b3bf7c5 100755 --- a/qutebrowser +++ b/qutebrowser @@ -1,7 +1,19 @@ #!/bin/sh -# Version from Git repository -~/repos/qutebrowser/qutebrowser.py --backend webengine "$@" +# Version with user's venv +if [ -f ~/src/qutebrowser-venv/bin/python3 ]; then + ~/src/qutebrowser-venv/bin/python3 -m qutebrowser + exit 0 +fi # Version from APT package -#command qutebrowser +if dpkg -l | grep -q qutebrowser ; then + command qutebrowser + exit 0 +fi + +# Version from Git repository +if [ -f ~/repos/qutebrowser/qutebrowser.py ]; then + ~/repos/qutebrowser/qutebrowser.py --backend webengine "$@" + exit0 +fi