core: detect what desktop environment the user is using

This commit is contained in:
Jeffrey C. Ollie
2025-01-01 18:06:31 -06:00
parent cde8b7e810
commit 5c39d09053
3 changed files with 28 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ const build_options = @import("build_options");
const Allocator = std.mem.Allocator;
const builtin = @import("builtin");
const build_config = @import("../build_config.zig");
const internal_os = @import("../os/main.zig");
const xev = @import("xev");
const renderer = @import("../renderer.zig");
const gtk = if (build_config.app_runtime == .gtk) @import("../apprt/gtk/c.zig").c else void;
@@ -36,6 +37,7 @@ pub fn run(alloc: Allocator) !u8 {
try stdout.print(" - font engine: {}\n", .{build_config.font_backend});
try stdout.print(" - renderer : {}\n", .{renderer.Renderer});
try stdout.print(" - libxev : {}\n", .{xev.backend});
try stdout.print(" - desktop env: {s}\n", .{@tagName(internal_os.desktopEnvironment())});
if (comptime build_config.app_runtime == .gtk) {
try stdout.print(" - GTK version:\n", .{});
try stdout.print(" build : {d}.{d}.{d}\n", .{