feat: recurse deeper in applications folder

max recursion 2 levels
This commit is contained in:
Cyril Levis
2021-12-30 22:04:19 +01:00
committed by Kenny Levinsen
parent 1edefd9cad
commit d4f62da6f5
3 changed files with 33 additions and 2 deletions
+2 -2
View File
@@ -3,9 +3,9 @@ use ini::{Ini, ParseOption};
use std::cmp::Ordering;
use std::env;
use std::error::Error;
use std::fs;
use std::io::Error as io_error;
use std::io::ErrorKind;
use walkdir::WalkDir;
#[derive(Clone, Debug, Eq, Hash)]
pub struct Desktop {
@@ -56,7 +56,7 @@ impl Desktop {
fn parse_dir(d: &str) -> Result<Vec<Desktop>, Box<dyn Error>> {
let mut files: Vec<Desktop> = Vec::with_capacity(16);
for entry in fs::read_dir(d)? {
for entry in WalkDir::new(d) {
let entry = entry?;
let path = entry.path();