mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
Added Tor Browser to Web Browsers tab
This commit is contained in:
parent
79eb752552
commit
a838f2d855
34
core/tabs/applications-setup/browsers/tor-browser.sh
Normal file
34
core/tabs/applications-setup/browsers/tor-browser.sh
Normal file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. ../../common-script.sh
|
||||
|
||||
installTorBrowser() {
|
||||
if ! command_exists tor; then
|
||||
printf "%b\n" "${YELLOW}Installing Tor Browser...${RC}"
|
||||
case "$PACKAGER" in
|
||||
apt-get|nala)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher
|
||||
;;
|
||||
zypper)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" --non-interactive install torbrowser-launcher
|
||||
;;
|
||||
pacman)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm torbrowser-launcher
|
||||
;;
|
||||
dnf)
|
||||
"$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher
|
||||
;;
|
||||
*)
|
||||
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
else
|
||||
printf "%b\n" "${GREEN}Tor Browser is already installed.${RC}"
|
||||
fi
|
||||
}
|
||||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
installTorBrowser
|
||||
|
|
@ -186,6 +186,12 @@ description = "Vivaldi is a freeware, cross-platform web browser developed by Vi
|
|||
script = "browsers/vivaldi.sh"
|
||||
task_list = "I"
|
||||
|
||||
[[data.entries]]
|
||||
name = "Tor Browser"
|
||||
description = "Tor Browser is a free and open-source firefox-based browser designed for anonymity and censorship circumvention."
|
||||
script = "browsers/tor-browser.sh"
|
||||
task_list = "I"
|
||||
|
||||
[[data]]
|
||||
name = "Alacritty"
|
||||
description = "Alacritty is a modern terminal emulator that comes with sensible defaults, but allows for extensive configuration. By integrating with other applications, rather than reimplementing their functionality, it manages to provide a flexible set of features with high performance. The supported platforms currently consist of BSD, Linux, macOS and Windows.\nThis command installs and condifures alacritty terminal emulator."
|
||||
|
|
Loading…
Reference in New Issue
Block a user