gtk: work around lack of display in when validating builder files

This commit is contained in:
Jeffrey C. Ollie
2025-01-27 10:53:18 -06:00
parent 7f3724ec6f
commit 503f993545

View File

@ -21,6 +21,11 @@ pub fn main() !void {
};
defer alloc.free(filename);
if (c.gtk_init_check() == 0) {
std.debug.print("skipping builder check because we can't connect to display!\n", .{});
return;
}
if (comptime build_options.adwaita) {
c.adw_init();
} else {