Clean LXDE code

This commit is contained in:
MatMoul 2015-09-01 04:57:58 +02:00
parent 3a566dae80
commit b79ec9f5b2
2 changed files with 4 additions and 10 deletions

View file

@ -3,13 +3,12 @@
options=() options=()
package="" items=$(pacman -Sqg lxde)
items=$(pacman -Sqg $package)
for item in $items; do for item in $items; do
options+=("$item" "" on) options+=("$item" "" on)
done done
sel=$(whiptail --backtitle "$apptitle" --title "$package Install :" --checklist "" --cancel-button "Back" 0 0 0 \ sel=$(whiptail --backtitle "$apptitle" --title "LXDE Install :" --checklist "" --cancel-button "Back" 0 0 0 \
"${options[@]}" \ "${options[@]}" \
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
@ -25,7 +24,7 @@ instpkg "$pkg" "$aurpkg"
for itm in $sel; do for itm in $sel; do
case $itm in case $itm in
'lxdm') svcenable lxdm;; '"lxdm"') svcenable lxdm;;
esac esac
done done

View file

@ -30,12 +30,7 @@ case $sel in
'Gnome') menu install/desktop/gnome/menu;; 'Gnome') menu install/desktop/gnome/menu;;
'Plasma5') menu install/desktop/plasma5/menu;; 'Plasma5') menu install/desktop/plasma5/menu;;
'Cinnamon') script install/desktop/cinnamon/packages;; 'Cinnamon') script install/desktop/cinnamon/packages;;
'LXDE') 'LXDE') script install/desktop/lxde/packages;;
require install/desktop/lxde/packages 755
sed -i "/^package=/c\package=\"lxde\"" install/desktop/lxde/packages
script install/desktop/lxde/packages
svcenable lxdm
;;
'LXQt') menu install/desktop/lxqt/menu;; 'LXQt') menu install/desktop/lxqt/menu;;
'Mate') menu install/desktop/mate/menu;; 'Mate') menu install/desktop/mate/menu;;
'Enlightenment') script install/desktop/enlightenment/packages;; 'Enlightenment') script install/desktop/enlightenment/packages;;