Skip to content

Commit 2837f92

Browse files
leventbesliNyx
andauthored
fix(browsers): vivaldi setup (#718)
* Fixed Vivaldi Setup Lynx install script replaced with Vivaldi. * zypper and pacman added to vivaldi.sh - zypper and pacman added. - format fixes. * Delete Cargo.lock * Revert "Delete Cargo.lock" This reverts commit 0b0f173. * xdg-utils removed from script * revert cargo.lock * update cargo.lock * update cargo.lock * Update Cargo.lock Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com> * Update Cargo.lock Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com> --------- Co-authored-by: Nyx <144965845+nnyyxxxx@users.noreply.github.com>
1 parent 4577df4 commit 2837f92

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

core/tabs/applications-setup/browsers/vivaldi.sh

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,39 @@
22

33
. ../../common-script.sh
44

5-
installLynx() {
6-
if ! command_exists lynx; then
7-
printf "%b\n" "${YELLOW}Installing Lynx...${RC}"
5+
installVivaldi() {
6+
if ! command_exists vivaldi; then
7+
printf "%b\n" "${YELLOW}Installing Vivaldi...${RC}"
88
case "$PACKAGER" in
9+
apt-get|nala)
10+
"$ESCALATION_TOOL" "$PACKAGER" install -y curl
11+
"$ESCALATION_TOOL" curl -fsSL https://repo.vivaldi.com/archive/linux_signing_key.pub | gpg --dearmor | sudo dd of=/usr/share/keyrings/vivaldi-browser.gpg
12+
"$ESCALATION_TOOL" echo "deb [signed-by=/usr/share/keyrings/vivaldi-browser.gpg arch=$(dpkg --print-architecture)] https://repo.vivaldi.com/archive/deb/ stable main" | sudo dd of=/etc/apt/sources.list.d/vivaldi-archive.list
13+
"$ESCALATION_TOOL" "$PACKAGER" update
14+
"$ESCALATION_TOOL" "$PACKAGER" install -y vivaldi-stable
15+
;;
16+
dnf)
17+
"$ESCALATION_TOOL" "$PACKAGER" install -y dnf-plugins-core
18+
"$ESCALATION_TOOL" "$PACKAGER" config-manager --add-repo https://repo.vivaldi.com/stable/vivaldi-fedora.repo
19+
"$ESCALATION_TOOL" "$PACKAGER" install -y vivaldi-stable
20+
;;
21+
zypper)
22+
"$ESCALATION_TOOL" zypper ar https://repo.vivaldi.com/archive/vivaldi-suse.repo
23+
"$ESCALATION_TOOL" zypper --non-interactive --gpg-auto-import-keys in vivaldi-stable
24+
;;
925
pacman)
10-
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm lynx
26+
"$ESCALATION_TOOL" "$PACKAGER" -S --needed --noconfirm vivaldi
1127
;;
1228
*)
13-
"$ESCALATION_TOOL" "$PACKAGER" install -y lynx
29+
printf "%b\n" "${RED}Unsupported package manager: ""$PACKAGER""${RC}"
30+
exit 1
1431
;;
1532
esac
1633
else
17-
printf "%b\n" "${GREEN}Lynx TUI Browser is already installed.${RC}"
34+
printf "%b\n" "${GREEN}Vivaldi Browser is already installed.${RC}"
1835
fi
1936
}
2037

2138
checkEnv
2239
checkEscalationTool
23-
installLynx
40+
installVivaldi

0 commit comments

Comments
 (0)