Fixed data.json path
This commit is contained in:
parent
43b60801cf
commit
527b72eddb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue