From a6ccaf4a4ee664835f476c8ac4742b5077e4a03a Mon Sep 17 00:00:00 2001 From: D7OM <61534551+d7omdev@users.noreply.github.com> Date: Sun, 2 Feb 2025 07:13:06 +0300 Subject: [PATCH] feat: Zen Browser installation (#940) * Zen Browser installation - Added Zen Browser to Web Browsers tab. * Update core/tabs/applications-setup/browsers/zen-browser.sh Co-authored-by: Jeevitha Kannan K S * Revert changes to docs/userguide.md --------- Co-authored-by: Jeevitha Kannan K S --- .../browsers/zen-browser.sh | 29 +++++++++++++++++++ core/tabs/applications-setup/tab_data.toml | 8 ++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100755 core/tabs/applications-setup/browsers/zen-browser.sh diff --git a/core/tabs/applications-setup/browsers/zen-browser.sh b/core/tabs/applications-setup/browsers/zen-browser.sh new file mode 100755 index 00000000..4cd7d932 --- /dev/null +++ b/core/tabs/applications-setup/browsers/zen-browser.sh @@ -0,0 +1,29 @@ +#!/bin/sh -e + +. ../../common-script.sh + +installZenBrowser() { + if ! command_exists io.github.zen_browser.zen && ! command_exists zen-browser; then + printf "%b\n" "${YELLOW}Installing Zen Browser...${RC}" + case "$PACKAGER" in + pacman) + if grep -q avx2 /proc/cpuinfo; then + "$AUR_HELPER" -S --needed --noconfirm zen-browser-avx2-bin + else + "$AUR_HELPER" -S --needed --noconfirm zen-browser-bin + fi + ;; + *) + checkFlatpak + flatpak install -y flathub io.github.zen_browser.zen + ;; + esac + else + printf "%b\n" "${GREEN}Zen Browser is already installed.${RC}" + fi +} + +checkEnv +checkEscalationTool +checkAURHelper +installZenBrowser diff --git a/core/tabs/applications-setup/tab_data.toml b/core/tabs/applications-setup/tab_data.toml index 336293ca..62eb71a1 100644 --- a/core/tabs/applications-setup/tab_data.toml +++ b/core/tabs/applications-setup/tab_data.toml @@ -192,6 +192,12 @@ description = "Mozilla Firefox is a free and open-source web browser developed b script = "browsers/firefox.sh" task_list = "I" +[[data.entries]] +name = "Zen Browser" +description = "Zen Browser is a privacy-focused web browser designed for enhanced security and a seamless browsing experience." +script = "browsers/zen-browser.sh" +task_list = "I" + [[data.entries]] name = "Thorium" description = "Thorium is a Chromium-based browser focused on privacy and performance." @@ -336,4 +342,4 @@ values = ["wayland", "Wayland"] name = "ZSH Prompt" description = "The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements, including some features of Bash, ksh, and tcsh. This command installs ZSH prompt and provides basic configuration." script = "zsh-setup.sh" -task_list = "I FM" \ No newline at end of file +task_list = "I FM"