mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
revert browser juggling
This commit is contained in:
parent
e3427d1b47
commit
25d124d787
1 changed files with 2 additions and 13 deletions
|
@ -85,19 +85,8 @@ if [[ -n "${_L_XFCE}" || -n "${_L_SWAY}" || -n "${_L_PLASMA}" || -n "${_L_GNOME}
|
|||
# only start vnc on xorg environment
|
||||
echo "Setting up VNC and browser..." >"${_LOG}"
|
||||
[[ -n "${_L_XFCE}" ]] && _autostart_vnc
|
||||
# install standard browser
|
||||
_BROWSER="$(grep '_STANDARD_BROWSER' /etc/archboot/defaults | cut -d '=' -f2)"
|
||||
if ! pacman -Q ${_BROWSER} &>"${_NO_LOG}"; then
|
||||
if [[ "${_BROWSER}" == "firefox" ]]; then
|
||||
pacman -Rss --noconfirm chromium &>"${_LOG}"
|
||||
else
|
||||
pacman -Rss --noconfirm firefox &>"${_LOG}"
|
||||
fi
|
||||
pacman --noconfirm -Sy ${_BROWSER} &>"${_LOG}"
|
||||
fi
|
||||
|
||||
|
||||
_${_BROWSER}_flags
|
||||
command -v firefox &>"${_NO_LOG}" && _firefox_flags
|
||||
command -v chromium &>"${_NO_LOG}" && _chromium_flags
|
||||
if [[ -n "${_L_XFCE}" ]]; then
|
||||
_start_xfce | _dialog --title "${_MENU_TITLE}" --gauge "Starting ${_ENVIRONMENT}..." 6 75 99
|
||||
clear
|
||||
|
|
Loading…
Reference in a new issue