From b6fba46b087cd27fefa4d67c0a3b0eb084c7b016 Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Tue, 28 Jul 2026 01:38:48 +0200 Subject: [PATCH 1/4] GPA: Add more tracking in Debug Signed-off-by: AnErrupTion --- src/main.zig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.zig b/src/main.zig index 31a8519..1d0db99 100644 --- a/src/main.zig +++ b/src/main.zig @@ -149,8 +149,11 @@ pub fn main(init: std.process.Init) !void { } } - var gpa = std.heap.DebugAllocator(.{}).init; - defer _ = gpa.deinit(); + var gpa: std.heap.DebugAllocator(.{ + .never_unmap = builtin.mode == .Debug, + .retain_metadata = builtin.mode == .Debug, + }) = .init; + defer if (gpa.deinit() == .leak) std.log.err("attention please, memory has been leaked!", .{}); state.allocator = gpa.allocator(); From a22805d44b7f277d5901036edc11d01d88b749ab Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Fri, 31 Jul 2026 23:52:19 +0200 Subject: [PATCH 2/4] Auth: Handle symlinks for session log Signed-off-by: AnErrupTion --- src/auth.zig | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/auth.zig b/src/auth.zig index c9abf15..7d9c66c 100644 --- a/src/auth.zig +++ b/src/auth.zig @@ -574,7 +574,15 @@ fn executeCmd(global_log_file: *LogFile, allocator: std.mem.Allocator, io: std.I fn redirectStandardStreams(global_log_file: *LogFile, io: std.Io, session_log: []const u8, create: bool) !std.Io.File { create_session_log_dir: { const session_log_dir = std.Io.Dir.path.dirname(session_log) orelse break :create_session_log_dir; - std.Io.Dir.cwd().createDirPath(io, session_log_dir) catch |err| { + + var buffer = std.mem.zeroes([std.Io.Dir.max_path_bytes]u8); + const len = std.Io.Dir.cwd().realPathFile(io, session_log_dir, &buffer) catch |err| { + try global_log_file.err(io, "auth/sys", "failed to resolve path for session log file directory: {s}", .{@errorName(err)}); + return err; + }; + const resolved_path = buffer[0..len]; + + std.Io.Dir.cwd().createDirPath(io, resolved_path) catch |err| { try global_log_file.err(io, "auth/sys", "failed to create session log file directory: {s}", .{@errorName(err)}); return err; }; From db7f8ac5d39ba1d6f0cd9988607cb9ef70ae494f Mon Sep 17 00:00:00 2001 From: dragsbruh Date: Fri, 21 Aug 2026 19:10:29 +0200 Subject: [PATCH 3/4] [Docs] Fix instructions to disable agetty-tty2 for runit in readme (#1043) ## What are the changes about? updated instructions in readme.md for runit to properly disable `agetty-tty2` and unlink services ## What existing issue(s) does this resolve? on void linux, when `runit-void` package is upgraded it re-adds the symlinks for agetty, including `agetty-tty2`, if its not properly disabled (`down` file in svdir) https://github.com/void-linux/void-packages/blob/master/srcpkgs/runit-void/INSTALL so everytime that package is updated, both `agetty-tty2` and `ly` start making `ly` unusable until you manually unlink it ## Pre-requisites - [x] I have tested & confirmed the changes work locally - [x] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md` Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1043 Reviewed-by: AnErrupTion --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 2d26c31..fa1c38d 100644 --- a/readme.md +++ b/readme.md @@ -180,9 +180,10 @@ On non-systemd systems, you can change the TTY Ly will run on by editing the cor ``` # zig build installexe -Dinit_system=runit -# rm /var/service/lightdm +# unlink /var/service/lightdm # ln -s /etc/sv/ly /var/service/ -# rm /var/service/agetty-tty2 +# touch /etc/sv/agetty-tty2/down +# unlink /var/service/agetty-tty2 ``` ### s6 From 1d071223abeea843394cfa4f9d2d560e50e4b682 Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Sun, 23 Aug 2026 15:35:38 +0200 Subject: [PATCH 4/4] README: Remove runtime `shutdown` dependency Signed-off-by: AnErrupTion --- readme.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/readme.md b/readme.md index fa1c38d..8cacd1a 100644 --- a/readme.md +++ b/readme.md @@ -27,8 +27,6 @@ Join us on Matrix over at [#ly-dm:matrix.org](https://matrix.to/#/#ly-dm:matrix. - xorg-xauth - - shutdown - - brightnessctl ### Debian