Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Fix null string causing GLib-GIO-CRITICAL (fixes #745) #790

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 9 additions & 6 deletions src/Utility/IconManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,16 @@ public class IconManager : GLib.Object {
}

// check relative location
string base_path = file_parent(file_parent(file_parent(binpath)));
string base_path = file_parent(file_parent(binpath));
if (base_path != "/"){
log_debug("base_path: %s".printf(base_path));
path = path_combine(base_path, path);
if (dir_exists(path)){
search_paths.add(path);
log_debug("found images directory: %s".printf(path));
base_path = file_parent(base_path);
if (base_path != "/"){
log_debug("base_path: %s".printf(base_path));
path = path_combine(base_path, path);
if (dir_exists(path)){
search_paths.add(path);
log_debug("found images directory: %s".printf(path));
}
}
}

Expand Down