From 7263b25ed5fe97f1273a3b60d31a83bb44fd511f Mon Sep 17 00:00:00 2001 From: axtlos Date: Fri, 29 Apr 2022 19:55:36 +0200 Subject: [PATCH] don't crash on 'None/DIY' selection from jade gui --- src/args.rs | 3 +++ src/functions/desktops.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/args.rs b/src/args.rs index c0e488c..83a17b9 100644 --- a/src/args.rs +++ b/src/args.rs @@ -220,4 +220,7 @@ pub enum DesktopSetup { #[clap(name = "enlightenment")] Enlightenment, + + #[clap(name = "None/DIY")] + None, } diff --git a/src/functions/desktops.rs b/src/functions/desktops.rs index 96e885c..422c139 100755 --- a/src/functions/desktops.rs +++ b/src/functions/desktops.rs @@ -13,6 +13,8 @@ pub fn install_desktop_setup(desktop_setup: DesktopSetup) { DesktopSetup::Mate => install_mate(), DesktopSetup::Xfce => install_xfce(), DesktopSetup::Enlightenment => install_enlightenment(), + DesktopSetup::None => log::debug!("No desktop setup selected"), + _ => crash("Unsupported desktop setup", 1), } install_networkmanager(); }