The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
fix(handbuch): unter Wayland sind es drei Notbehelfe, nicht zwei
purple12d63caa4a42
diff --git a/docs/guide/install/index.html b/docs/guide/install/index.htmlindex b90e1fa3..e4ac0014 100644--- a/docs/guide/install/index.html+++ b/docs/guide/install/index.html@@ -132,7 +132,7 @@ sudo dnf install ./Locally.Uncensored-3.0.0-1.x86_64.rpm</code></pre><div class="callout info"><div class="callout-title">Wayland and a window that stays black</div>-On some Wayland desktops and some Mesa versions the window opens and never paints. The app sets two environment variables at start to avoid that, <code>WEBKIT_DISABLE_DMABUF_RENDERER=1</code> and <code>WEBKIT_DISABLE_COMPOSITING_MODE=1</code>, but only if you have not set them yourself. If you want the GPU path back, set either variable before starting the app and the app leaves your value alone. The AppImage also clears <code>PYTHONHOME</code> and <code>PYTHONPATH</code> for every Python it starts, because the AppImage runtime exports them into its own mount and a system Python would otherwise die on "No module named 'encodings'".+On some Wayland desktops and some Mesa versions the window opens and never paints. On a Wayland session the app sets up to three environment variables at start to avoid that: <code>WEBKIT_DISABLE_DMABUF_RENDERER=1</code>, <code>WEBKIT_DISABLE_COMPOSITING_MODE=1</code>, and, in the AppImage only, <code>LD_PRELOAD</code> pointing at the system <code>libwayland-client.so.0</code>, because the AppImage carries its own copy and the host Mesa cannot create an EGL display against it. The app sets each one only if you have not set it yourself, and it prints one line per variable with the reason. If you want the GPU path back, set any of those variables before starting the app and the app leaves your value alone, or set <code>LU_NO_WAYLAND_WORKAROUND=1</code> and it sets none of them. The AppImage also clears <code>PYTHONHOME</code> and <code>PYTHONPATH</code> for every Python it starts, because the AppImage runtime exports them into its own mount and a system Python would otherwise die on "No module named 'encodings'".</div><h2 id="warnings">What the security warnings mean</h2>@@ -221,7 +221,7 @@ After an update the app opens a sheet with the release notes once. It does not o<p><strong>The .deb refuses to install because of <code>/usr/bin/llama-server</code>.</strong> That was version 2.6.6 and older, whose package shipped the engine under the same name as Debian's <code>llama.cpp-tools</code>. Since 2.6.7 the engine is called <code>lu-llama-server</code> and the conflict is gone. Download the current package.</p>-<p><strong>Linux: the window opens but stays empty.</strong> See the Wayland callout above. If you have set <code>WEBKIT_DISABLE_DMABUF_RENDERER</code> or <code>WEBKIT_DISABLE_COMPOSITING_MODE</code> yourself, unset them so the app can apply its defaults. The app also reveals its window after ten seconds at the latest, so wait that long before you decide.</p>+<p><strong>Linux: the window opens but stays empty.</strong> See the Wayland callout above. If you have set <code>WEBKIT_DISABLE_DMABUF_RENDERER</code>, <code>WEBKIT_DISABLE_COMPOSITING_MODE</code> or <code>LD_PRELOAD</code> yourself, unset them so the app can apply its defaults. The app also reveals its window after ten seconds at the latest, so wait that long before you decide.</p><hr><p class="small">Previous chapter: <a href="/guide/what-it-is/">What it is</a>. Next chapter: <a href="/guide/first-start/">First start</a>. Back to the <a href="/guide/">handbook overview</a>.</p>diff --git a/docs/guide/settings-and-troubleshooting/index.html b/docs/guide/settings-and-troubleshooting/index.htmlindex eb5ae8c9..63cf6d66 100644--- a/docs/guide/settings-and-troubleshooting/index.html+++ b/docs/guide/settings-and-troubleshooting/index.html@@ -228,7 +228,7 @@<h2 id="linux">Linux notes</h2><ul>-<li>The window stays black on some Wayland desktops: chapter 2 has the two environment variables the app sets and how to override them.</li>+<li>The window stays black on some Wayland desktops: chapter 2 has the environment variables the app sets on a Wayland session and how to switch them off.</li><li>"Open folder" buttons need <code>xdg-utils</code> installed; without it nothing opens.</li><li>The AppImage clears <code>PYTHONHOME</code> and <code>PYTHONPATH</code> for the Python it starts, so a ComfyUI install from the AppImage works on a system Python.</li><li>The engine needs <code>libvulkan.so.1</code> and <code>libgomp.so.1</code>; the .deb and .rpm depend on them, the AppImage tells you if one is missing.</li>diff --git a/src/lib/__tests__/das-handbuch-zaehlt-die-wayland-notbehelfe-richtig.test.ts b/src/lib/__tests__/das-handbuch-zaehlt-die-wayland-notbehelfe-richtig.test.tsnew file mode 100644index 00000000..c576fa16--- /dev/null+++ b/src/lib/__tests__/das-handbuch-zaehlt-die-wayland-notbehelfe-richtig.test.ts@@ -0,0 +1,65 @@+/**+ * Fund 4 aus T8 (Ubuntu 22.04 und 26.04, AppImage der 3.0.0, 11.09.), Punkt 5:+ * auf beiden Kisten standen DREI Zeilen `[Linux] Wayland session:` auf der+ * Konsole, eine je Notbehelf. Das Handbuch auf locallyuncensored.com sagte an+ * zwei Stellen "two environment variables" und nannte nur+ * WEBKIT_DISABLE_DMABUF_RENDERER und WEBKIT_DISABLE_COMPOSITING_MODE. Der+ * dritte, LD_PRELOAD auf die System-libwayland-client, fehlte, und mit ihm der+ * einzige Schalter, der alle drei abstellt.+ *+ * Der Waechter zaehlt die Wahrheit dort, wo sie steht: in+ * `src-tauri/src/main.rs`, Funktion `linux_webview_env`. Rust wird hier nur+ * GELESEN. Steigt oder faellt die Zahl, faellt dieser Test auf und das+ * Handbuch muss mit.+ *+ * Lauf: npx vitest run src/lib/__tests__/das-handbuch-zaehlt-die-wayland-notbehelfe-richtig.test.ts+ */+import { describe, it, expect } from 'vitest'+import { readFileSync } from 'node:fs'++const MAIN_RS = readFileSync('src-tauri/src/main.rs', 'utf8')+const INSTALL = readFileSync('docs/guide/install/index.html', 'utf8')+const TROUBLE = readFileSync('docs/guide/settings-and-troubleshooting/index.html', 'utf8')++/** Der Rumpf von `linux_webview_env`, und nur der: die Tests darunter setzen+ * dieselben Namen noch einmal und wuerden sonst mitgezaehlt. */+const PLAN = MAIN_RS.slice(+ MAIN_RS.indexOf('pub(crate) fn linux_webview_env'),+ MAIN_RS.indexOf('/// Is this a Wayland session?'),+)++describe('was der Code unter Wayland wirklich setzt', () => {+ const notbehelfe = PLAN.match(/out\.push\(WebviewEnv \{/g) ?? []++ it('drei Notbehelfe, nicht zwei', () => {+ expect(notbehelfe).toHaveLength(3)+ for (const schluessel of [+ 'WEBKIT_DISABLE_DMABUF_RENDERER', 'WEBKIT_DISABLE_COMPOSITING_MODE', 'LD_PRELOAD',+ ]) {+ expect(PLAN, schluessel).toContain(schluessel)+ }+ // Positivkontrolle: der Ausschnitt ist wirklich die Funktion und nicht leer.+ expect(PLAN.length).toBeGreaterThan(200)+ })++ it('und einen Schalter, der alle abstellt', () => {+ expect(MAIN_RS).toContain('WAYLAND_OPT_OUT: &str = "LU_NO_WAYLAND_WORKAROUND"')+ })+})++describe('das Handbuch sagt dasselbe', () => {+ it('nennt keine falsche Zahl mehr', () => {+ for (const [name, seite] of [['install', INSTALL], ['troubleshooting', TROUBLE]] as const) {+ expect(seite, name).not.toContain('two environment variables')+ }+ })++ it('nennt alle drei Variablen und den Schalter', () => {+ for (const schluessel of [+ 'WEBKIT_DISABLE_DMABUF_RENDERER', 'WEBKIT_DISABLE_COMPOSITING_MODE', 'LD_PRELOAD',+ 'LU_NO_WAYLAND_WORKAROUND',+ ]) {+ expect(INSTALL, schluessel).toContain(schluessel)+ }+ })+})