Skip to content

Commit

Permalink
gtk: work around lack of display in when validating builder files
Browse files Browse the repository at this point in the history
  • Loading branch information
jcollie committed Jan 30, 2025
1 parent 0224a72 commit aef76d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/apprt/gtk/builder_check.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit aef76d3

Please sign in to comment.