From b2ae209d2dd659d750e7383dba6eb0edff9910ce Mon Sep 17 00:00:00 2001 From: Phoenix Mark Hale Date: Wed, 16 Oct 2024 15:09:02 +0200 Subject: [PATCH 1/3] Added Tor Browser to Web Browsers tab. --- .../browsers/tor-browser.sh | 34 +++++++++++++++++++ core/tabs/applications-setup/tab_data.toml | 6 ++++ 2 files changed, 40 insertions(+) create mode 100644 core/tabs/applications-setup/browsers/tor-browser.sh diff --git a/core/tabs/applications-setup/browsers/tor-browser.sh b/core/tabs/applications-setup/browsers/tor-browser.sh new file mode 100644 index 00000000..6107e058 --- /dev/null +++ b/core/tabs/applications-setup/browsers/tor-browser.sh @@ -0,0 +1,34 @@ +#!/bin/sh -e + +. ../../common-script.sh + +installTorBrowser() { + if ! command_exists torbrowser-launcher; 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 + diff --git a/core/tabs/applications-setup/tab_data.toml b/core/tabs/applications-setup/tab_data.toml index ef6af7de..c8212636 100644 --- a/core/tabs/applications-setup/tab_data.toml +++ b/core/tabs/applications-setup/tab_data.toml @@ -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 web 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." From 5b35d3249936bc3d596e17829c5887c78b8819c3 Mon Sep 17 00:00:00 2001 From: Phoenix Mark Hale Date: Wed, 16 Oct 2024 17:33:45 +0200 Subject: [PATCH 2/3] Ran cargo xtask docgen --- docs/userguide.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/userguide.md b/docs/userguide.md index 2b7ad82b..093fa8ea 100644 --- a/docs/userguide.md +++ b/docs/userguide.md @@ -43,6 +43,7 @@ https://github.com/ChrisTitusTech/neovim - **Mozilla Firefox**: Mozilla Firefox is a free and open-source web browser developed by the Mozilla Foundation. - **Thorium**: Thorium is a Chromium-based browser focused on privacy and performance. - **Vivaldi**: Vivaldi is a freeware, cross-platform web browser developed by Vivaldi Technologies. +- **Tor Browser**: Tor Browser is a free and open-source firefox-based web browser designed for anonymity and censorship circumvention. - **Alacritty**: 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. This command installs and condifures alacritty terminal emulator. - **Android Debloater**: Universal Android Debloater (UAD) is a tool designed to help users remove bloatware and unnecessary pre-installed applications from Android devices, enhancing performance and user experience. From d5f4e4935eaa1157b22d15b88820eb9a4d68966d Mon Sep 17 00:00:00 2001 From: Phoenix Mark Hale <69822350+phoenixhaleofficial@users.noreply.github.com> Date: Thu, 17 Oct 2024 17:03:18 +0200 Subject: [PATCH 3/3] removed unnecessary double quotes in tor-browser.sh Co-authored-by: JEEVITHA KANNAN K S --- core/tabs/applications-setup/browsers/tor-browser.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tabs/applications-setup/browsers/tor-browser.sh b/core/tabs/applications-setup/browsers/tor-browser.sh index 6107e058..cfd6c5f2 100644 --- a/core/tabs/applications-setup/browsers/tor-browser.sh +++ b/core/tabs/applications-setup/browsers/tor-browser.sh @@ -19,7 +19,7 @@ installTorBrowser() { "$ESCALATION_TOOL" "$PACKAGER" install -y torbrowser-launcher ;; *) - printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}" + printf "%b\n" "${RED}Unsupported package manager: ${PACKAGER}${RC}" exit 1 ;; esac