mirror of
https://github.com/stornic56/debianito-post-install.git
synced 2026-09-14 06:02:35 +00:00
Firefox bug fix & LXDE desktop option
- Resolved Firefox installation conflict: the "both" selection no longer triggers duplicate dialogs or cancellation; the installer now passes the resolved choice to both Mozilla and ESR installers, preserving co-installation without redundant prompts. - Fixed bugs across Debian 11/12/13 scripts: - Migrated `migrate.sh` to write classic `.sources` format for Debian 11 and skip the security stanza for SID. - Corrected non-free token matching in `firmware.sh` to avoid false positives on non-free-firmware-only systems. - Added `sudo` to `broadcom-combo.conf` creation and fixed `/etc/modprobe.d` directory handling. - Fixed write propagation in `repos.sh` to prevent silent failures on user rejection. - Corrected PipeWire state detection for Debian 11 and added SID security stanza exclusion. - Added LXDE desktop environment option to `debianito.sh`: - New "LXDE (Full)" and "LXDE Core" options in the Desktop Environment menu. - Both options install `lightdm` in a single `apt-get install` call and enable the service via `systemctl enable`. - Includes debconf preseed for LightDM default display manager selection. - No extra packages, no Openbox/LXDE configuration changes. - Added `_radiolist()` helper to `utils.sh` for safe radio-list cancellation under `set -e`. - Added `lxde_menu()` to `desktop_display.sh` with exact 2-option radio list, single-shot dispatch, and clean `return 0` on cancel. - Added `_install_lxde_full()` and `_install_lxde_core()` with `debconf-set-selections`, single `apt` call, and `systemctl enable lightdm` post-install.
This commit is contained in:
@@ -22,8 +22,9 @@ desktop_environment_menu() {
|
||||
while true; do
|
||||
local -a env_items=()
|
||||
env_items+=("1" "XFCE")
|
||||
env_items+=("2" "Back")
|
||||
# Future desktop environments: add "2" "GNOME", "3" "KDE", ... here
|
||||
env_items+=("2" "LXDE")
|
||||
env_items+=("3" "Back")
|
||||
# Future desktop environments: add "3" "GNOME", "4" "KDE", ... here
|
||||
# and a matching case below calling its own menu (e.g. gnome_menu).
|
||||
local choice
|
||||
choice=$(_menu "Desktop Environment" \
|
||||
@@ -33,11 +34,44 @@ desktop_environment_menu() {
|
||||
clear
|
||||
case "$choice" in
|
||||
1) xfce_menu ;;
|
||||
2) break ;;
|
||||
2) lxde_menu ;;
|
||||
3) break ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
lxde_menu() {
|
||||
local choice
|
||||
choice=$(_radiolist "LXDE" \
|
||||
"Select an option:" $TUI_ALTO $TUI_ANCHO $TUI_ALTO_LISTA \
|
||||
"1" "LXDE (Escritorio completo)" OFF \
|
||||
"2" "LXDE Core (Instalación mínima)" OFF)
|
||||
[ -z "$choice" ] && return 0
|
||||
clear
|
||||
case "$(echo "$choice" | tr -d '"')" in
|
||||
1) _install_lxde_full ;;
|
||||
2) _install_lxde_core ;;
|
||||
esac
|
||||
}
|
||||
|
||||
_install_lxde_full() {
|
||||
echo -e "${GREEN}Installing LXDE (Full) + LightDM...${NC}"
|
||||
echo "lightdm shared/default-x-display-manager select lightdm" | sudo debconf-set-selections
|
||||
_run_cmd "LXDE Full" "sudo apt install -y lxde lightdm" \
|
||||
"Installing LXDE (Full Meta Package) + LightDM..."
|
||||
sudo systemctl enable lightdm
|
||||
echo -e "${GREEN}LXDE installed. LightDM enabled.${NC}"
|
||||
}
|
||||
|
||||
_install_lxde_core() {
|
||||
echo -e "${GREEN}Installing LXDE Core + LightDM...${NC}"
|
||||
echo "lightdm shared/default-x-display-manager select lightdm" | sudo debconf-set-selections
|
||||
_run_cmd "LXDE Core" "sudo apt install -y lxde-core lightdm" \
|
||||
"Installing LXDE Core (Minimal) + LightDM..."
|
||||
sudo systemctl enable lightdm
|
||||
echo -e "${GREEN}LXDE Core installed. LightDM enabled.${NC}"
|
||||
}
|
||||
|
||||
xfce_menu() {
|
||||
while true; do
|
||||
local -a xf_items=()
|
||||
|
||||
Reference in New Issue
Block a user