diff --git a/known-folders.zig b/known-folders.zig index aefe7dd..d85215f 100644 --- a/known-folders.zig +++ b/known-folders.zig @@ -121,7 +121,7 @@ pub fn getPath(allocator: std.mem.Allocator, folder: KnownFolder) Error!?[]const return try allocator.dupe(u8, abs); }, .suffix => |s| { - const home_dir = if (std.os.getenv("HOME")) |home| + const home_dir = if (std.posix.getenv("HOME")) |home| home else return null;