summaryrefslogtreecommitdiff
path: root/xdg.zig
diff options
context:
space:
mode:
Diffstat (limited to 'xdg.zig')
-rw-r--r--xdg.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/xdg.zig b/xdg.zig
index c56ce38..c7d7e23 100644
--- a/xdg.zig
+++ b/xdg.zig
@@ -42,7 +42,7 @@ pub fn getConfigDirs(allocator: Allocator, app_name: []const u8) ![][]u8 {
42 defer list.deinit(); 42 defer list.deinit();
43 43
44 if (std.posix.getenv("XDG_CONFIG_DIRS")) |config_dirs| { 44 if (std.posix.getenv("XDG_CONFIG_DIRS")) |config_dirs| {
45 var it = std.mem.split(u8, config_dirs, ":"); 45 var it = std.mem.splitScalar(u8, config_dirs, ':');
46 while (it.next()) |config_dir| { 46 while (it.next()) |config_dir| {
47 try list.append(try std.fs.path.join(allocator, &.{ config_dir, app_name })); 47 try list.append(try std.fs.path.join(allocator, &.{ config_dir, app_name }));
48 } 48 }