diff options
-rw-r--r-- | setup-desktop.in | 54 | ||||
-rwxr-xr-x | tests/setup_desktop_test | 11 |
2 files changed, 62 insertions, 3 deletions
diff --git a/setup-desktop.in b/setup-desktop.in index ad2a269..3d77c76 100644 --- a/setup-desktop.in +++ b/setup-desktop.in @@ -31,7 +31,7 @@ fi de="$1" -valid_desktops="xfce gnome none" +valid_desktops="xfce gnome plasma none" if [ $# -eq 1 ] && ! isin "$de" $valid_desktops; then echo "$de is not a valid desktop" >&2 usage "1" >&2 @@ -39,7 +39,7 @@ fi shift while ! isin "$de" $valid_desktops; do - ask "Which desktop environment? ('gnome', 'xfce' or 'none')" none + ask "Which desktop environment? ('gnome', 'plasma', 'xfce' or 'none')" none de="$resp" done @@ -62,6 +62,56 @@ case "$de" in setup-xorg-base ${BROWSER:-firefox} gnome gnome-apps-core "$@" rc-update add gdm ;; + plasma) + setup-xorg-base ${BROWSER:-firefox} \ + ark \ + bluedevil \ + breeze \ + breeze-gtk \ + breeze-icons \ + dbus \ + discover \ + drkonqi \ + font-noto \ + gwenview \ + kate \ + kde-cli-tools \ + kde-gtk-config \ + kdeplasma-addons \ + kgamma5 \ + khotkeys \ + kinfocenter \ + kio-fuse \ + kmenuedit \ + konsole \ + kscreen \ + ksshaskpass \ + kwallet-pam \ + kwayland-integration \ + pinentry-qt \ + plasma-browser-integration \ + plasma-desktop \ + plasma-disks \ + plasma-nm \ + plasma-pa \ + plasma-systemmonitor \ + plasma-vault \ + plasma-workspace-wallpapers \ + polkit-elogind \ + polkit-kde-agent-1 \ + print-manager \ + powerdevil \ + sddm-breeze \ + sddm-kcm \ + spectacle \ + systemsettings \ + udisks2 \ + xdg-desktop-portal-kde \ + xdg-user-dirs \ + "$@" + rc-update add dbus + rc-update add sddm + ;; *) usage "1" >&2 ;; diff --git a/tests/setup_desktop_test b/tests/setup_desktop_test index 8166c2a..40acf6f 100755 --- a/tests/setup_desktop_test +++ b/tests/setup_desktop_test @@ -5,7 +5,8 @@ init_tests \ setup_desktop_usage \ setup_desktop_unsupported \ setup_desktop_xfce \ - setup_desktop_gnome + setup_desktop_gnome \ + setup_desktop_plasma setup_desktop_usage_body() { test_usage setup-desktop @@ -37,3 +38,11 @@ setup_desktop_gnome_body() { setup-desktop gnome } +setup_desktop_plasma_body() { + init_env + atf_check -s exit:0 \ + -o match:"apk add.*plasma-desktop" \ + -o match:"Starting udev" \ + -e match:"WARNING: You need to create a user account" \ + setup-desktop plasma +} |