Skip to content

Fix Linux CEF library discovery#974

Open
caniko wants to merge 1 commit into
futo-org:masterfrom
caniko:fix/linux-cef-library-path
Open

Fix Linux CEF library discovery#974
caniko wants to merge 1 commit into
futo-org:masterfrom
caniko:fix/linux-cef-library-path

Conversation

@caniko

@caniko caniko commented Jul 10, 2026

Copy link
Copy Markdown

What changed

On Linux, prepend Grayjay's bundled cef/ directory to LD_LIBRARY_PATH before starting the CEF process.

Why

CEF's ANGLE backend loads EGL libraries with dlopen() at runtime. The bundled libEGL.so is next to justcefnative, but that directory is not guaranteed to be present in the dynamic loader's search path. When it cannot resolve EGL, the CEF subprocess exits during startup and Grayjay remains on a blank/gray window.

The path is added only on Linux, preserves the existing value, and is inherited by CEF's browser and GPU subprocesses.

Validation

  • dotnet restore Grayjay.Desktop.CEF/Grayjay.Desktop.CEF.csproj
  • dotnet build Grayjay.Desktop.CEF/Grayjay.Desktop.CEF.csproj --no-restore -v:q

The build completed successfully with 0 errors. Existing compiler/analyzer warnings remain unchanged.

@caniko caniko marked this pull request as ready for review July 10, 2026 16:51
@caniko

caniko commented Jul 10, 2026

Copy link
Copy Markdown
Author

We might need to tune the logic, only tested on my own PC

@Zvonimir-FUTO Zvonimir-FUTO added the Enhancement New feature or request label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA-signed Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants