Changed config file path to ~/.config/lister/data.json
This commit is contained in:
parent
052b93924a
commit
c7f166e807
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue