Fixed data.json path

This commit is contained in:
Medvidek77 2025-04-19 01:15:18 +02:00
parent 43b60801cf
commit 527b72eddb

View file

@ -10,7 +10,7 @@ pub fn main() !void {
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", .{});
const file = try std.fs.cwd().openFile(path, .{});
defer file.close();
const data = try file.reader().readAllAlloc(allocator, 32768);