Manage differents location for qutebrowser bin

This commit is contained in:
gardouille 2020-10-22 17:13:59 +02:00
parent e92a49aca3
commit 4b51ddb627
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 15 additions and 3 deletions

View File

@ -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