mirror of https://github.com/fairyglade/ly.git
Recursively create xauth file directory if non-existent
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
parent
9e4147bfb4
commit
c0c400e0b6
|
|
@ -369,7 +369,7 @@ fn createXauthFile(pwd: []const u8, buffer: []u8) ![]const u8 {
|
|||
|
||||
const xauthority: []u8 = try std.fmt.bufPrint(buffer, "{s}/{s}", .{ trimmed_xauth_dir, xauth_file });
|
||||
|
||||
std.fs.makeDirAbsolute(trimmed_xauth_dir) catch {};
|
||||
std.fs.cwd().makePath(trimmed_xauth_dir) catch {};
|
||||
|
||||
const file = try std.fs.createFileAbsolute(xauthority, .{});
|
||||
file.close();
|
||||
|
|
|
|||
Loading…
Reference in New Issue