Changed config file path to ~/.config/lister/data.json

This commit is contained in:
Medvidek77 2025-04-19 01:03:32 +02:00
parent 052b93924a
commit c7f166e807

View file

@ -6,7 +6,7 @@ pub fn main() !void {
defer _ = gpa.deinit();
const allocator = gpa.allocator();
const file = try std.fs.cwd().openFile("data.json", .{});
const file = try std.fs.cwd().openFile("~/.config/lister/data.json", .{});
defer file.close();
const data = try file.reader().readAllAlloc(allocator, 32768);