Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip precompilation if Gtk4 fails to initialize #241

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jwahlstrand
Copy link
Collaborator

@jwahlstrand jwahlstrand commented Feb 15, 2025

Previously, on a headless system ProfileView would fail to precompile because Gtk4 refused to start if the C library's init_check method failed. Gtk4 now allows it to fail, but we can't precompile because calling any C library methods without initializing the C library first causes a segmentation fault. With this PR, ProfileView checks if Gtk4 was initialized and skips precompilation if it wasn't. The cost is TTFX if precompilation was done in a headless situation (for example through an SSH connection).

Fixes #219.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't precompile without a display
1 participant