Fix minor profile loading issue
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 28s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 28s
This commit is contained in:
parent
d0c1cffe8f
commit
efb2043ec9
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
2
|
1
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
falcond (1.0.7-101pika1) pika; urgency=low
|
||||||
|
|
||||||
|
* Don't load profiles in subfolders
|
||||||
|
|
||||||
|
-- ferreo <ferreo@pika-os.com> Sun, 12 Jan 2025 13:48:00 +0300
|
||||||
|
|
||||||
falcond (1.0.6-101pika1) pika; urgency=low
|
falcond (1.0.6-101pika1) pika; urgency=low
|
||||||
|
|
||||||
* Add handheld and htpc profiles, split system processes config to live in the profiles repo for easier updates
|
* Add handheld and htpc profiles, split system processes config to live in the profiles repo for easier updates
|
||||||
|
@ -30,12 +30,10 @@ pub fn loadConfDir(comptime T: type, allocator: std.mem.Allocator, dir_path: []c
|
|||||||
var dir = try std.fs.openDirAbsolute(dir_path, .{ .iterate = true });
|
var dir = try std.fs.openDirAbsolute(dir_path, .{ .iterate = true });
|
||||||
defer dir.close();
|
defer dir.close();
|
||||||
|
|
||||||
var walker = try dir.walk(allocator);
|
var iter = dir.iterate();
|
||||||
defer walker.deinit();
|
while (try iter.next()) |entry| {
|
||||||
|
if (entry.kind == .file and std.mem.endsWith(u8, entry.name, ".conf")) {
|
||||||
while (try walker.next()) |entry| {
|
const path = try std.fs.path.join(allocator, &.{ dir_path, entry.name });
|
||||||
if (entry.kind == .file and std.mem.endsWith(u8, entry.path, ".conf")) {
|
|
||||||
const path = try std.fs.path.join(allocator, &.{ dir_path, entry.path });
|
|
||||||
defer allocator.free(path);
|
defer allocator.free(path);
|
||||||
|
|
||||||
const file = try std.fs.openFileAbsolute(path, .{});
|
const file = try std.fs.openFileAbsolute(path, .{});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user