Closed synasius closed 4 years ago
fuzzle panics because it search on the hard-coded path /home/docler/...
fuzzle
/home/docler/...
May I suggest to use the content of the PATH environment variable to get a list of binary paths?
PATH
Anyway here you should remove the expect and fail gracefully
expect
for dir in &["/usr/bin", "/usr/local/bin", "/home/docler/.local/bin/"] { results.append( &mut fs::read_dir(dir) .expect("Can't find /usr/bin") .filter_map(|path| searchresult_from_bin(&path.unwrap().path())) .collect(), ); }
fuzzle
panics because it search on the hard-coded path/home/docler/...
May I suggest to use the content of the
PATH
environment variable to get a list of binary paths?Anyway here you should remove the
expect
and fail gracefully