diff options
| author | 2024-07-10 10:36:48 +0300 | |
|---|---|---|
| committer | 2024-07-10 10:37:11 +0300 | |
| commit | 7a1fe22046e374461c37fb232dca0a1a1733a532 (patch) | |
| tree | 4059384936d404792db2cdfd7469dec971daf91f /xdg.zig | |
| parent | Update for zig 0.13.0 (diff) | |
| download | zig-xdg-0.5.0.tar.gz zig-xdg-0.5.0.tar.xz zig-xdg-0.5.0.zip | |
Diffstat (limited to 'xdg.zig')
| -rw-r--r-- | xdg.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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 | } |