summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2023-05-06 22:44:18 -0400
committerJordan Wiens <jordan@psifertex.com>2023-05-06 22:44:18 -0400
commit6571c60a8648d901cbc1ffa46376915b1314913d (patch)
tree70e17a0174fd9d7e56b49460fa7969ebce224800 /scripts
parent7191658282315521220137779383046212337768 (diff)
remove root mode for linux-setup.sh
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/linux-setup.sh17
1 files changed, 2 insertions, 15 deletions
diff --git a/scripts/linux-setup.sh b/scripts/linux-setup.sh
index 1ae10e65..59f436d9 100755
--- a/scripts/linux-setup.sh
+++ b/scripts/linux-setup.sh
@@ -20,14 +20,7 @@ setvars()
EXEC="${BNPATH}/binaryninja"
PNG="${BNPATH}/docs/img/logo.png"
EXT="bndb"
- if [ "$ROOT" == "root" ]
- then
- SHARE="/usr/share" #For system
- SUDO="sudo " #For system
- else
- SHARE="${HOME}/.local/share" #For user only
- SUDO="" #For user only
- fi
+ SHARE="${HOME}/.local/share" #For user only
DESKTOPFILE="${SHARE}/applications/${APPID}.desktop"
OLDDESKTOPFILE="${SHARE}/applications/${APP}.desktop"
MIMEFILE="${SHARE}/mime/packages/application-x-${APP}.xml"
@@ -76,7 +69,7 @@ pythonpath()
fi
if [[ -x "`which python3`" ]]
then
- python3 -V >/dev/null 2>&1 && ${SUDO}python3 "${BNPATH}/scripts/install_api.py" ${ROOT} ${SILENT}
+ python3 -V >/dev/null 2>&1 && python3 "${BNPATH}/scripts/install_api.py" ${SILENT}
else
echo "Python3 not found. Not installing BN PTH file."
fi
@@ -168,9 +161,6 @@ uninstall()
exit 0
}
-
-
-ROOT=user
CREATEDESKTOP=true
CREATEMIME=true
ADDTODESKTOP=true
@@ -200,9 +190,6 @@ do
-m)
CREATEMIME=false
;;
- -r)
- ROOT=root
- ;;
-s)
ADDTODESKTOP=false
CREATEMIME=false