Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio Desktop: remove the duplicate KDE Wayland title bar on Linux (#15568)

Etherl881ea904711b
diff --git a/studio/src-tauri/tauri.linux.conf.json b/studio/src-tauri/tauri.linux.conf.json
index c571b1e5add..e6a7224d0f3 100644
--- a/studio/src-tauri/tauri.linux.conf.json
+++ b/studio/src-tauri/tauri.linux.conf.json
@@ -1,4 +1,21 @@
{
+ "app": {
+ "windows": [
+ {
+ "label": "main",
+ "title": "Unsloth",
+ "width": 760,
+ "height": 560,
+ "center": true,
+ "visible": false,
+ "resizable": false,
+ "decorations": false,
+ "titleBarStyle": "Overlay",
+ "trafficLightPosition": { "x": 14, "y": 26 },
+ "hiddenTitle": true
+ }
+ ]
+ },
"bundle": {
"icon": [
"icons/linux/512x512.png",
diff --git a/tests/studio/test_tauri_linux_window_contract.py b/tests/studio/test_tauri_linux_window_contract.py
new file mode 100644
index 00000000000..f4dffcbc23b
--- /dev/null
+++ b/tests/studio/test_tauri_linux_window_contract.py
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+# tao forces Wayland CSD only for windows created undecorated; a later set_decorations(false) leaves KWin's frame.
+
+import json
+from pathlib import Path
+
+
+TAURI = Path(__file__).resolve().parents[2] / "studio/src-tauri"
+
+
+def _config(name: str) -> dict:
+ return json.loads((TAURI / name).read_text(encoding = "utf-8"))
+
+
+def _base_main_window() -> dict:
+ windows = _config("tauri.conf.json")["app"]["windows"]
+ return next(window for window in windows if window["label"] == "main")
+
+
+def test_shared_main_window_stays_decorated_for_macos() -> None:
+ assert _base_main_window()["decorations"] is True
+
+
+def test_only_linux_overrides_the_window_list() -> None:
+ for platform in ("windows", "macos"):
+ assert "windows" not in _config(f"tauri.{platform}.conf.json").get("app", {}), platform
+
+
+def test_linux_main_window_matches_shared_one_except_decorations() -> None:
+ # RFC 7396 merge replaces arrays wholesale, so Linux restates the whole entry.
+ linux_windows = _config("tauri.linux.conf.json")["app"]["windows"]
+ assert linux_windows == [{**_base_main_window(), "decorations": False}]