add desktop

This commit is contained in:
Tobias Powalowski 2023-07-13 06:36:18 +02:00
parent 7c4126f8a8
commit e13dfc67dd

View file

@ -26,13 +26,13 @@ _dolauncher() {
exit 0 ;; exit 0 ;;
"2") "2")
_LAUNCHER="" _LAUNCHER=""
update | grep -q Gnome && _LAUNCHER="${_LAUNCHER} GNOME Gnome" update | grep -q Gnome && _LAUNCHER="${_LAUNCHER} GNOME 'Gnome Desktop'"
update | grep -q KDE && _LAUNCHER="${_LAUNCHER} PLASMA KDE/Plasma" update | grep -q KDE && _LAUNCHER="${_LAUNCHER} PLASMA 'KDE/Plasma Desktop'"
update | grep -q Sway && _LAUNCHER="${_LAUNCHER} SWAY Sway" update | grep -q Sway && _LAUNCHER="${_LAUNCHER} SWAY 'Sway Desktop'"
update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE Xfce" update | grep -q Xfce && _LAUNCHER="${_LAUNCHER} XFCE 'Xfce Desktop'"
_ABORT="" _ABORT=""
if [[ -n "${_LAUNCHER}" ]]; then if [[ -n "${_LAUNCHER}" ]]; then
_dialog --title " Desktop Menu " --menu "" 10 30 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1 _dialog --title " Desktop Menu " --menu "" 10 40 6 ${_LAUNCHER} 2>${_ANSWER} || _ABORT=1
else else
_dialog --msgbox "Error:\nNo Desktop Environments available." 0 0 _dialog --msgbox "Error:\nNo Desktop Environments available." 0 0
_ABORT=1 _ABORT=1