Log which VT is used

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2026-02-07 10:48:05 +01:00
parent ce0d00771d
commit 950eeed3ee

View File

@@ -263,6 +263,8 @@ pub fn main() !void {
var log_file = try LogFile.init(config.ly_log, &log_file_buffer);
defer log_file.deinit();
try log_file.info("tui", "using {s} vt", .{if (use_kmscon_vt) "kmscon" else "default"});
// These strings only end up getting freed if the user quits Ly using Ctrl+C, which is fine since in the other cases
// we end up shutting down or restarting the system
shutdown_cmd = try temporary_allocator.dupe(u8, config.shutdown_cmd);