From aa4890fe62308f1f46cd6b24004e23025800447f Mon Sep 17 00:00:00 2001 From: netsgnut <284779+netsgnut@users.noreply.github.com> Date: Mon, 15 Dec 2025 11:00:18 -0800 Subject: [PATCH] fix(kasmvnc): update kasmvnc desktop environment list to match upstream (#598) ## Description This PR makes the following changes to `coder/modules/kasmvnc`: - Update desktop environment list for the KasmVNC module Currently upstream supports a number of [additional Desktop Environments](https://github.com/kasmtech/KasmVNC/blob/v1.4.0/unix/vncserver.man#L56-L67). The change updates the list so that DEs like Mate are supported. Do note that `manual` is also supported if `$HOME/.vnc/xstartup` is supplied, so this has been added as another option, too. ## Type of Change - [ ] New module - [ ] New template - [X] Bug fix - [ ] Feature/enhancement - [ ] Documentation - [ ] Other ## Module Information **Path:** `registry/coder/modules/kasmvnc` **New version:** `v1.2.7` **Breaking change:** [ ] Yes [X] No ## Testing & Validation - [X] Tests pass (`bun test`) - [X] Code formatted (`bun fmt`) - [X] Changes tested locally ## Related Issues None Co-authored-by: DevCats --- registry/coder/modules/kasmvnc/README.md | 2 +- registry/coder/modules/kasmvnc/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/coder/modules/kasmvnc/README.md b/registry/coder/modules/kasmvnc/README.md index c769cd85..7fcc7fb0 100644 --- a/registry/coder/modules/kasmvnc/README.md +++ b/registry/coder/modules/kasmvnc/README.md @@ -14,7 +14,7 @@ Automatically install [KasmVNC](https://kasmweb.com/kasmvnc) in a workspace, and module "kasmvnc" { count = data.coder_workspace.me.start_count source = "registry.coder.com/coder/kasmvnc/coder" - version = "1.2.6" + version = "1.2.7" agent_id = coder_agent.example.id desktop_environment = "xfce" subdomain = true diff --git a/registry/coder/modules/kasmvnc/main.tf b/registry/coder/modules/kasmvnc/main.tf index 5a5b449b..4635f612 100644 --- a/registry/coder/modules/kasmvnc/main.tf +++ b/registry/coder/modules/kasmvnc/main.tf @@ -31,7 +31,7 @@ variable "desktop_environment" { description = "Specifies the desktop environment of the workspace. This should be pre-installed on the workspace." validation { - condition = contains(["xfce", "kde", "gnome", "lxde", "lxqt"], var.desktop_environment) + condition = contains(["cinnamon", "mate", "lxde", "lxqt", "kde", "gnome", "xfce", "manual"], var.desktop_environment) error_message = "Invalid desktop environment. Please specify a valid desktop environment." } }