Skip to content

fix(linux): resolve grey window when relaunched as root via pkexec#118

Merged
dbfx merged 1 commit intomainfrom
fix/linux-grey-window-root
Apr 5, 2026
Merged

fix(linux): resolve grey window when relaunched as root via pkexec#118
dbfx merged 1 commit intomainfrom
fix/linux-grey-window-root

Conversation

@dbfx
Copy link
Copy Markdown
Contributor

@dbfx dbfx commented Apr 5, 2026

Summary

  • Adds --disable-gpu-compositing and --in-process-gpu Chromium switches when running as root on Linux, forcing a rendering path that paints reliably even when the software compositor fails
  • Forwards DBUS_SESSION_BUS_ADDRESS through pkexec so GTK/accessibility integration works in the elevated process
  • Fixes the grey/blank window reported on Linux Mint after relaunching as administrator

Closes #118

Test plan

  • Launch Kudu on Linux Mint, click "Relaunch as Administrator", verify the window renders correctly
  • Verify non-elevated launch on Linux is unaffected
  • Verify Windows and macOS elevation paths are unaffected

🤖 Generated with Claude Code

On Linux Mint (and potentially other desktops), relaunching Kudu as
administrator produced a grey window where the DOM loaded (cursor
reacted to buttons) but nothing painted. Two changes fix this:

- Append --disable-gpu-compositing and --in-process-gpu Chromium
  switches when running as root on Linux, forcing a rendering path
  that reliably paints even when the software compositor fails.
- Forward DBUS_SESSION_BUS_ADDRESS through pkexec so GTK/accessibility
  integration in the renderer works correctly in the elevated process.

Closes #118

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@dbfx dbfx merged commit b83d448 into main Apr 5, 2026
9 checks passed
@dbfx dbfx deleted the fix/linux-grey-window-root branch April 5, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant