OrcaSlicer/resources/web
SoftFever c12912e0df
Fix Setup Wizard stuck on "Loading..." on Wayland (#12159)
# Description

Fixes the Setup Wizard getting stuck on the "Loading......" screen when
running on Wayland sessions.

**Root Cause:** When OrcaSlicer runs under XWayland (Wayland sessions
with `GDK_BACKEND=x11`), WebKit2GTK's compositing mode can fail
silently, causing the Setup Wizard WebView to freeze or render blank.
The JavaScript signal from C++ (`userguide_profile_load_finish`) either
fails to execute or its rendering result never displays, leaving users
permanently stuck.

**Solution:**
1. Set `WEBKIT_DISABLE_COMPOSITING_MODE=1` environment variable to force
software rendering for WebKit2GTK - this is the same fix used by
BambuStudio
2. Enable the 20-second timeout fallback in `load.js` so the wizard
proceeds automatically even if the C++ → JavaScript communication fails

**Files changed:**
- `src/OrcaSlicer.cpp` - Added `WEBKIT_DISABLE_COMPOSITING_MODE` env var
(4 lines)
- `resources/web/guide/0/load.js` - Enabled timeout fallback (2 lines)

# Screenshots/Recordings/Graphs

N/A - This is a Linux/Wayland-specific fix that addresses a rendering
issue. The visual result is simply that the Setup Wizard proceeds past
"Loading......" as expected.

## Tests

1. **On Wayland session (e.g., GNOME on Wayland):**
- Remove existing config (`~/.config/OrcaSlicer/`) to simulate first
launch
   - Launch OrcaSlicer
- Verify Setup Wizard proceeds past "Loading......" to the actual wizard
page

2. **On X11 session:**
   - Same test as above to verify no regression

3. **Verify env var is set:**
- Check that `WEBKIT_DISABLE_COMPOSITING_MODE=1` is in the process
environment on Linux builds
2026-02-03 23:10:17 +08:00
..
data Update zh_TW translations (#11514) 2025-12-09 23:38:12 +08:00
flush Relax flushing volume thresholds for printers needing higher purge. (#11778) 2026-01-05 22:41:04 +00:00
guide Fix Setup Wizard stuck on "Loading..." on Wayland 2026-02-03 14:47:08 +08:00
homepage Match button styles on whole UI and fixes for button class (#11233) 2025-12-18 12:14:56 +00:00
image Icon fixes and improvements (#6204) 2025-04-20 13:20:20 +08:00
include Match button styles on whole UI and fixes for button class (#11233) 2025-12-18 12:14:56 +00:00
login init 2026-01-23 17:05:56 +08:00
model Match button styles on whole UI and fixes for button class (#11233) 2025-12-18 12:14:56 +00:00
orca Fixed a regression bug that device URL was not reset when changing to a machine don't have connection info 2024-03-11 22:37:15 +08:00