diff --git a/lib/desktop/kde.sh b/lib/desktop/kde.sh index 7bec6ec..959952c 100644 --- a/lib/desktop/kde.sh +++ b/lib/desktop/kde.sh @@ -45,5 +45,4 @@ install_kde() { install_kde_packages chroot_systemd_enable sddm.service copy_desktop_skel "$username" - run_cmd_in_chroot usermod -aG wireshark "$username" } diff --git a/profiles/registry.sh b/profiles/registry.sh index 8921751..b60ad29 100644 --- a/profiles/registry.sh +++ b/profiles/registry.sh @@ -111,6 +111,11 @@ install_profile() { chroot_pacman_install $packages fi + # Add user to wireshark group if wireshark was installed + if run_cmd_in_chroot getent group wireshark > /dev/null 2>&1; then + run_cmd_in_chroot usermod -aG wireshark "$username" + fi + # Enable profile services services=$(get_profile_services "$profile_key") for service in $services; do