Skip to content

Commit

Permalink
fix(wayland): ilia returns empty keybindings page if a directory incl…
Browse files Browse the repository at this point in the history
…uded in the configs doesn't exist
  • Loading branch information
SoumyaRanjanPatnaik committed Jul 22, 2023
1 parent 98ea293 commit 62aef17
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/keybindings/I3Ipc.vala
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ namespace Ilia {
// Head of queue doesn't change if the string doesn't contain widcards
Posix.Glob pathMatcher = Posix.Glob ();
string path_glob = path_queue.pop_head ();
pathMatcher.glob (path_glob);
pathMatcher.glob (path_glob, Posix.GLOB_NOCHECK | Posix.GLOB_NOSORT);
foreach (unowned string matched_path in pathMatcher.pathv) {
path_queue.push_head (matched_path);
}
Expand All @@ -134,7 +134,12 @@ namespace Ilia {

// Read config partial and append to config builder
string config_partial;
FileUtils.get_contents (config_path, out config_partial);
try {
FileUtils.get_contents (config_path, out config_partial);
} catch (GLib.Error err) {
continue;
}

configBuilder.append (config_partial);

// Append paths of configs included from current config partial to queue for bfs
Expand Down

0 comments on commit 62aef17

Please sign in to comment.