Fixed data.json path

This commit is contained in:
Medvidek77 2025-04-19 01:13:13 +02:00
parent c7f166e807
commit a2e27b2c47

View file

@ -6,6 +6,10 @@ pub fn main() !void {
defer _ = gpa.deinit();
const allocator = gpa.allocator();
const username = std.os.getenv("USER");
const path = try std.fmt.allocPrint(allocator, "/home/{s}/.config/lister/data.json", .{username});
const file = try std.fs.cwd().openFile("~/.config/lister/data.json", .{});
defer file.close();